@@ 820-826 (lines=7) @@ | ||
817 | $headers .= substr($cookie_headers,0,-2) . "\r\n"; |
|
818 | } |
|
819 | } |
|
820 | if(!empty($this->rawheaders)) |
|
821 | { |
|
822 | if(!is_array($this->rawheaders)) |
|
823 | $this->rawheaders = (array)$this->rawheaders; |
|
824 | while(list($headerKey,$headerVal) = each($this->rawheaders)) |
|
825 | $headers .= $headerKey.": ".$headerVal."\r\n"; |
|
826 | } |
|
827 | if(!empty($content_type)) { |
|
828 | $headers .= "Content-type: $content_type"; |
|
829 | if ($content_type == "multipart/form-data") |
|
@@ 984-990 (lines=7) @@ | ||
981 | $headers[] = substr($cookie_str,0,-2); |
|
982 | } |
|
983 | } |
|
984 | if(!empty($this->rawheaders)) |
|
985 | { |
|
986 | if(!is_array($this->rawheaders)) |
|
987 | $this->rawheaders = (array)$this->rawheaders; |
|
988 | while(list($headerKey,$headerVal) = each($this->rawheaders)) |
|
989 | $headers[] = $headerKey.": ".$headerVal; |
|
990 | } |
|
991 | if(!empty($content_type)) { |
|
992 | if ($content_type == "multipart/form-data") |
|
993 | $headers[] = "Content-type: $content_type; boundary=".$this->_mime_boundary; |