Last modified: 2014-06-19 12:22:38 UTC
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.