Wow, 6 days later and the host is trying to tell me they do it to prevent Cross-scripting, et al attacks. Did you ever heard such a line?
-----Original Message----- From: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] On Behalf Of OQ Sent: Wednesday, February 01, 2012 2:51 PM To: MediaWiki API announcements & discussion Subject: Re: [Mediawiki-api] Content-Length being written twice in HTTPHeader
On Wed, Feb 1, 2012 at 12:52 PM, Platonides platonides@gmail.com wrote:
On 01/02/12 00:13, OQ wrote:
Looks like a nginx bug. They are always adding a Content-Length. Even if one was already provided by the cgi.
I'd definately check your configuration, mine send 0 content-length headers.
And by zero I meant 1.
HTTP/1.1 200 OK Server: nginx/1.1.14 Date: Tue, 31 Jan 2012 23:12:14 GMT Content-Type: text/html Content-Length: 6 Connection: close X-Powered-By: PHP/5.3.9-1
Interesting. Are you also running php as cgi? You're running a more recent php (5.3.9-1 vs 5.2.17), so it could also have been a fixed php bug.
As FastCGI with php5-fpm.
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api