|
From: <pp...@us...> - 2013-09-30 15:20:04
|
Revision: 2051
http://sourceforge.net/p/simpletest/code/2051
Author: pp11
Date: 2013-09-30 15:19:59 +0000 (Mon, 30 Sep 2013)
Log Message:
-----------
Patch for [bugs:#192] PUT request fails to encode body parameters by Jamm!n
Modified Paths:
--------------
simpletest/trunk/user_agent.php
Modified: simpletest/trunk/user_agent.php
===================================================================
--- simpletest/trunk/user_agent.php 2012-04-24 10:29:08 UTC (rev 2050)
+++ simpletest/trunk/user_agent.php 2013-09-30 15:19:59 UTC (rev 2051)
@@ -212,7 +212,7 @@
* @access public
*/
function fetchResponse($url, $encoding) {
- if ($encoding->getMethod() != 'POST') {
+ if (!in_array($encoding->getMethod(), array('POST', 'PUT'))) {
$url->addRequestParameters($encoding);
$encoding->clear();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|