Issue 684: web services calls return incorrect Content-Type
http://code.google.com/p/reviewboard/issues/detail?id=684

New issue report by jaybuffington:
Here is an response/request from a web services call:

GET /api/json/reviewrequests/all/ HTTP/1.1
Host: codereview.corp
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.17)  
Gecko/20080829 Firefox/2.0.0.17
Accept:  
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: XXXX
If-Modified-Since: Wed, 08 Oct 2008 16:45:52 GMT
If-None-Match: "11f22ce59ab1cea1XXXXXXXXXXXXX"
Cache-Control: max-age=0

HTTP/1.x 200 OK
Date: Wed, 08 Oct 2008 16:45:58 GMT
Last-Modified: Wed, 08 Oct 2008 16:45:59 GMT
Etag: "11f22ce59ab1cea1XXXXXXXXXXXXXXXX"
Expires: Wed, 08 Oct 2008 16:45:59 GMT
Cache-Control: max-age=0, private
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
Content-Encoding: gzip


The response is setting the content-type to text/html.  It should be  
application/json.  This is causing me problems because I have other
apache modules that rely on the correct content-type being set.

Thanks!
Jay


Issue attributes:
        Status: New
        Owner: ----
        Labels: Type-Defect Priority-Medium

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to