Author: jablko
Date: 2008-10-11 15:21:22 -0700 (Sat, 11 Oct 2008)
New Revision: 1460
Modified:
trunk/qubit/patches/sockets-adapter.patch
Log:
Fix Content-Length header for POST requests.
Modified: trunk/qubit/patches/sockets-adapter.patch
===================================================================
--- trunk/qubit/patches/sockets-adapter.patch 2008-10-11 22:16:59 UTC (rev
1459)
+++ trunk/qubit/patches/sockets-adapter.patch 2008-10-11 22:21:22 UTC (rev
1460)
@@ -1,8 +1,8 @@
Index: plugins/sfWebBrowserPlugin/lib/sfSocketsAdapter.class.php
===================================================================
---- plugins/sfWebBrowserPlugin/lib/sfSocketsAdapter.class.php (revision 12079)
+--- plugins/sfWebBrowserPlugin/lib/sfSocketsAdapter.class.php (revision 12148)
+++ plugins/sfWebBrowserPlugin/lib/sfSocketsAdapter.class.php (working copy)
-@@ -47,18 +47,38 @@
+@@ -47,27 +47,48 @@
$url_info = parse_url($uri);
// initialize default values
@@ -44,7 +44,18 @@
$request .= $request_headers;
$request .= "Connection: Close\r\n";
-@@ -91,7 +111,7 @@
+ if ($method == 'POST')
+ {
++ $body = http_build_query($parameters);
+ $request .= 'Content-Length: '.strlen($body)."\r\n";
+ $request .= "Content-type: application/x-www-form-urlencoded\r\n";
+ $request .= "\r\n";
+- $request .= http_build_query($parameters, '', '&');
++ $request .= $body;
+ }
+ else if ($method == 'PUT')
+ {
+@@ -91,7 +112,7 @@
fclose($fp);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---