|
@@ 748-755 (lines=8) @@
|
| 745 |
|
$headers .= substr($cookie_headers, 0, -2) . "\r\n"; |
| 746 |
|
} |
| 747 |
|
} |
| 748 |
|
if (!empty($this->rawheaders)) { |
| 749 |
|
if (!is_array($this->rawheaders)) |
| 750 |
|
$this->rawheaders = (array)$this->rawheaders; |
| 751 |
|
while (list($headerKey, $headerVal) = each($this->rawheaders)) |
| 752 |
|
$headers .= $headerKey . ": " . $headerVal . "\r\n"; |
| 753 |
|
} |
| 754 |
|
if (!empty($content_type)) { |
| 755 |
|
$headers .= "Content-type: $content_type"; |
| 756 |
|
if ($content_type == "multipart/form-data") |
| 757 |
|
$headers .= "; boundary=" . $this->_mime_boundary; |
| 758 |
|
$headers .= "\r\n"; |
|
@@ 912-919 (lines=8) @@
|
| 909 |
|
$headers[] = substr($cookie_str, 0, -2); |
| 910 |
|
} |
| 911 |
|
} |
| 912 |
|
if (!empty($this->rawheaders)) { |
| 913 |
|
if (!is_array($this->rawheaders)) |
| 914 |
|
$this->rawheaders = (array)$this->rawheaders; |
| 915 |
|
while (list($headerKey, $headerVal) = each($this->rawheaders)) |
| 916 |
|
$headers[] = $headerKey . ": " . $headerVal; |
| 917 |
|
} |
| 918 |
|
if (!empty($content_type)) { |
| 919 |
|
if ($content_type == "multipart/form-data") |
| 920 |
|
$headers[] = "Content-type: $content_type; boundary=" . $this->_mime_boundary; |
| 921 |
|
else |
| 922 |
|
$headers[] = "Content-type: $content_type"; |