Changeset 55210 for trunk/src/wp-includes/class-snoopy.php
- Timestamp:
- 02/03/2023 01:33:18 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-snoopy.php
r47735 r55210 54 54 // $cookies["username"]="joe"; 55 55 var $rawheaders = array(); // array of raw headers to send 56 // $rawheaders["Content- type"]="text/html";56 // $rawheaders["Content-Type"]="text/html"; 57 57 58 58 var $maxredirs = 5; // http redirection depth maximum. 0 = disallow … … 826 826 } 827 827 if(!empty($content_type)) { 828 $headers .= "Content- type: $content_type";828 $headers .= "Content-Type: $content_type"; 829 829 if ($content_type == "multipart/form-data") 830 830 $headers .= "; boundary=".$this->_mime_boundary; … … 832 832 } 833 833 if(!empty($body)) 834 $headers .= "Content- length: ".strlen($body)."\r\n";834 $headers .= "Content-Length: ".strlen($body)."\r\n"; 835 835 if(!empty($this->user) || !empty($this->pass)) 836 836 $headers .= "Authorization: Basic ".base64_encode($this->user.":".$this->pass)."\r\n"; … … 991 991 if(!empty($content_type)) { 992 992 if ($content_type == "multipart/form-data") 993 $headers[] = "Content- type: $content_type; boundary=".$this->_mime_boundary;993 $headers[] = "Content-Type: $content_type; boundary=".$this->_mime_boundary; 994 994 else 995 $headers[] = "Content- type: $content_type";995 $headers[] = "Content-Type: $content_type"; 996 996 } 997 997 if(!empty($body)) 998 $headers[] = "Content- length: ".strlen($body);998 $headers[] = "Content-Length: ".strlen($body); 999 999 if(!empty($this->user) || !empty($this->pass)) 1000 1000 $headers[] = "Authorization: BASIC ".base64_encode($this->user.":".$this->pass);
Note: See TracChangeset
for help on using the changeset viewer.