[wp-trac] Re: [WordPress Trac] #8605: POST-request,
but content-length missing -> 411
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 16 13:17:19 GMT 2008
#8605: POST-request, but content-length missing -> 411
---------------------+------------------------------------------------------
Reporter: eliascn | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: General | Version: 2.7
Severity: normal | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Comment (by Jalada):
It appears the problem is related to Lighttpd being strict about receiving
a Content-Length: http://forum.lighttpd.net/topic/482
I haven't tested it conclusively, but I've found adding:
{{{$r['headers']['Content-Length'] = 0;}}}
to line 245 (above the $transports line), which is explicitly defining
Content-Length as 0 for a null body, seems to fix my scheduled posts
problem and has made the errors go away.
I've attached a quick diff file too.
--
Ticket URL: <http://trac.wordpress.org/ticket/8605#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list