[wp-trac] [WordPress Trac] #10783: WordPress's GET function is sending a content-length of 0
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 14 21:11:28 UTC 2009
#10783: WordPress's GET function is sending a content-length of 0
------------------------------+---------------------------------------------
Reporter: noel | Owner: DD32
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 2.9
Component: HTTP | Version: 2.8.4
Severity: normal | Resolution:
Keywords: press this, http |
------------------------------+---------------------------------------------
Changes (by jacobsantos):
* status: closed => reopened
* resolution: fixed =>
Comment:
A null value basically just removes that value from the array and doing so
defeats the entire purpose of why it was put there in the first place.
The correct solution will be to test for POST if there isn't a body and
set it. If there is a body, then set it.
The reason it was put there was become some servers require it to be
there. So while it works for yours, it will not work for another server. A
compromise or filter has to be made in order to ensure that it continues
to work or allow for it to be made to work based on configurations.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10783#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list