File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 22
22
static char * get_http_header_value_nodup (char * headers , char * type , size_t * len );
23
23
static char * get_http_header_value (char * headers , char * type );
24
24
static zend_string * get_http_body (php_stream * stream , bool close , zend_string * headers );
25
- static zend_string * get_http_headers (php_stream * socketd );
25
+ static zend_string * get_http_headers (php_stream * stream );
26
26
27
27
#define smart_str_append_const (str , const ) \
28
28
smart_str_appendl(str,const,sizeof(const)-1)
@@ -1603,8 +1603,7 @@ static zend_string *get_http_headers(php_stream *stream)
1603
1603
if ((headerbuf [0 ] == '\r' && headerbuf [1 ] == '\n' ) ||
1604
1604
(headerbuf [0 ] == '\n' )) {
1605
1605
/* empty line marks end of headers */
1606
- smart_str_0 (& tmp_response );
1607
- return tmp_response .s ;
1606
+ return smart_str_extract (& tmp_response );
1608
1607
}
1609
1608
1610
1609
/* add header to collection */
You can’t perform that action at this time.
0 commit comments