Advertisement
Guest User

richard

a guest
Mar 4th, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. $added_api_key = False;
  2.     if ($headerParams != null) {
  3.       foreach ($headerParams as $key => $val) {
  4.        
  5.     // La linea de abajo la agregue yo Richard y comente la anterior
  6.     //$headers[] = "$key: $val";
  7.         $headers[$key] = $val;
  8.  
  9.         if ($key == $this->headerName) {
  10.           $added_api_key = True;
  11.         }
  12.       }
  13.     }
  14.  
  15. ...
  16.  
  17. if (strpos($headers['Content-Type'], "multipart/form-data") < 0 and (is_object($postData) or is_array($postData))) {
  18.       $postData = json_encode($this->sanitizeForSerialization($postData));
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement