Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2009 at 13:32 UTC
Updated:
1 May 2009 at 07:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
damien tournoud commentedI believe that we already had another issue for this, but I can find it right now.
Anyway, the patch looks good. Some English style nitpick:
* "to avoid" => "to prevent"
* "resonse" => "response"
* "... (like lighttpd *that* returns *a* 417 error code)"
Comment #2
klausiImproved comment as proposed.
Comment #3
fagoI've tested it with lighty, it fixes the problem. Can someone verify it still works with other servers like apache?
Comment #4
damien tournoud commentedAll our test slaves run Apache, so I'm very confident it works ;)
Comment #5
dries commentedJust wondering -- if it is a fix for the curl library, wouldn't it be better if this lived in curlExec() instead of outside curlExec().
It would also be useful to describe how this fixes things.
I would also add a new line after the fix so that it is clear that the comment relates to that one line only.
Comment #6
webchickMarking needs work, per Dries.
Comment #7
klausiDries wrote:
> Just wondering -- if it is a fix for the curl library, wouldn't it be better if this lived in curlExec() instead of outside curlExec().
The bug is related to POST requests, so I would suggest to keep it in drupalPost().
> It would also be useful to describe how this fixes things.
It manually sets an empty "Expect:" header field that is not overwritten by curl. I added this in the code comment.
> I would also add a new line after the fix so that it is clear that the comment relates to that one line only.
Agreed.
Comment #8
damien tournoud commentedI suggested moving this code to curlExec(), with a
if (!empty($options[CURLOPT_POST])wrapper.Comment #9
klausiOK, moved to curlExec().
Comment #10
chx commentedThis is good. I had this problem with my ghetto twitter client which uses the curl command line utility and http://www.shoemoney.com/2008/12/29/lib-curl-twitter-api-expect-100-cont... same problem. Did not occur to me tho it was more than twitter affected. Good catch.
Comment #11
dries commentedThanks for the additional comments and improvements. Committed to CVS HEAD.