Issue 684: web services calls return incorrect Content-Type

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:  
Gecko/20080829 Firefox/
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.


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:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at

Reply via email to