|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-02-27 12:49 UTC] niko dot sams at gmail dot com
Description:
------------
weak etags are quoted incorrectly, see test script.
Test script:
---------------
$r = new HttpRequest("http://www.php.net/", HTTP_METH_GET, array(
'etag' => 'W/"abc"',
));
$m = $r->send();
echo $r->getRawRequestMessage();
Expected result:
----------------
If-None-Match: W/"Dk8DRH48fil7ImA9WhBSGUs."
Actual result:
--------------
If-None-Match: "W/"Dk8DRH48fil7ImA9WhBSGUs.""
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 19:00:01 2025 UTC |
Possible workaround; set header manually: $r = new HttpRequest("http://www.php.net/", HTTP_METH_GET, array( 'headers'=> array( 'If-None-Match' => 'W/"abc"' ) )); $m = $r->send(); echo $r->getRawRequestMessage();