https://bugzilla.wikimedia.org/show_bug.cgi?id=66769
Bug ID: 66769
Summary: POST-request, but content-length missing -> 411
Product: MediaWiki
Version: 1.23.0
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: JobQueue
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Web browser: ---
Mobile Platform: ---
For every request, lighttpd/1.4.31 was logging the following to error.log:
2014-06-18 10:13:56: (request.c.1148) POST-request, but content-length missing
-> 411
While these POST requests for every page view seem to be caused by bug 66225,
it still seems wrong that a POST request is sent but its content-length is
missing.
I've come across at least two other projects where this was fixed:
* https://core.trac.wordpress.org/ticket/8605
* http://bitten.edgewall.org/ticket/667
Can this be fixed in MediaWiki as well?
./includes/libs/MultiHttpClient.php does contain:
-------------------------------------------------
} elseif ( $req['method'] === 'POST' ) {
curl_setopt( $ch, CURLOPT_POST, 1 );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $req['body'] );
} else {
if ( is_resource( $req['body'] ) || $req['body'] !== ''
) {
throw new Exception( "HTTP body specified for a
non PUT/POST request." );
}
$req['headers']['content-length'] = 0;
-------------------------------------------------
So, "content-length" is indeed set, but I don't know how to get a call chain to
see if this method is really used here.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l