Procházet zdrojové kódy

ZF-11030 and ZF-10162 commit of Client.php merged with changes by Ramon

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24269 44c647ce-9c0f-0410-b52a-842ac1e357ba
mcleod@spaceweb.nl před 14 roky
rodič
revize
cd41ade754
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      library/Zend/Http/Client.php

+ 2 - 2
library/Zend/Http/Client.php

@@ -371,7 +371,7 @@ class Zend_Http_Client
             throw new Zend_Http_Client_Exception("'{$method}' is not a valid HTTP request method.");
         }
 
-        if ($method == self::POST && $this->enctype === null) {
+        if (($method == self::POST || $method == self::PUT || $method == self::DELETE) && $this->enctype === null) {
             $this->setEncType(self::ENC_URLENCODED);
         }
 
@@ -740,7 +740,7 @@ class Zend_Http_Client
             'ctype'    => $ctype,
             'data'     => $data
         );
-
+        
         $this->body_field_order[$formname] = self::VTYPE_FILE;
 
         return $this;