Requirement for Deflate?

Requirement for Deflate?

Postby achuk » Sun Nov 23, 2014 7:28 am

Hi,

I'm curious why the /20140530/programs endpoint would require 'deflate' for Accept-Encoding (returning a 400 if not specified). The response returned is specified as Content-Encoding: gzip.

I spent hours trying to figure out why my call to /20140530/programs wasn't working while all of my other calls worked fine (yes, I was a derp and wasn't properly handling the returned error message). I finally realized I needed to specify deflate in addition to gzip, just to find that the response encoding was gzip.

A.
achuk
 
Posts: 17
Joined: Mon May 19, 2014 7:48 pm

Re: Requirement for Deflate?

Postby rkulagow » Sun Nov 23, 2014 4:58 pm

It appears that that portion of the code was something that was in the early stages of 20140530 that wasn't removed once we moved into semi-production. Because there are a large number of clients that are coding against 20140530 (even if it's flawed), I don't want to make the change now and pull the rug out.

Can you open a ticket at https://github.com/SchedulesDirect/JSON-Service/issues

so that I can tag that as a bug to get fixed on the next API iteration?

Thanks.
rkulagow
SD Staff
 
Posts: 911
Joined: Tue Aug 14, 2007 3:15 pm

Re: Requirement for Deflate?

Postby skipfire » Thu Dec 18, 2014 6:55 pm

Even just updating the documentation would be helpful. I have been chasing it down for hours before I realized I should capture it with fiddler and then I saw the message about deflate. Could have saved lots of time just having it in the documentation.
skipfire
 
Posts: 12
Joined: Sat May 17, 2014 3:54 pm

Re: Requirement for Deflate?

Postby rkulagow » Thu Dec 18, 2014 7:49 pm

Updated.
rkulagow
SD Staff
 
Posts: 911
Joined: Tue Aug 14, 2007 3:15 pm

Re: Requirement for Deflate?

Postby skipfire » Thu Dec 18, 2014 8:09 pm

Thanks
skipfire
 
Posts: 12
Joined: Sat May 17, 2014 3:54 pm


Return to Developer

Who is online

Users browsing this forum: No registered users and 3 guests

cron