Browse Source

ZF-5744: removed some old comments

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24300 44c647ce-9c0f-0410-b52a-842ac1e357ba
ezimuel 14 years ago
parent
commit
8d31c6993d
1 changed files with 3 additions and 15 deletions
  1. 3 15
      library/Zend/Http/Client.php

+ 3 - 15
library/Zend/Http/Client.php

@@ -1231,28 +1231,16 @@ class Zend_Http_Client
                     $boundary = '---ZENDHTTPCLIENT-' . md5(microtime());
                     $this->setHeaders(self::CONTENT_TYPE, self::ENC_FORMDATA . "; boundary={$boundary}");
 
-                    // Map the formname of each file to the array index it is stored in
-
                     // Encode all files and POST vars in the order they were given
                     foreach ($this->body_field_order as $fieldName=>$fieldType) {
                         switch ($fieldType) {
                             case self::VTYPE_FILE:
-                                
-                                //if (isset($fileIndexMap[$fieldName])) {
-                                    foreach ($this->files as $file) {
-                                        if ($file['formname']===$fieldName) {
-                                            $fhead = array(self::CONTENT_TYPE => $file['ctype']);
-                                            $body .= self::encodeFormData($boundary, $file['formname'], $file['data'], $file['filename'], $fhead);
-                                        }
-                                    }
-                                    /*
-                                    if (isset($this->files[$fileIndexMap[$fieldName]])) {
-                                        $file = $this->files[$fileIndexMap[$fieldName]];
+                                foreach ($this->files as $file) {
+                                    if ($file['formname']===$fieldName) {
                                         $fhead = array(self::CONTENT_TYPE => $file['ctype']);
                                         $body .= self::encodeFormData($boundary, $file['formname'], $file['data'], $file['filename'], $fhead);
                                     }
-                                     */
-                                //}
+                                }
                                 break;
                             case self::VTYPE_SCALAR:
                                 if (isset($this->paramsPost[$fieldName])) {