@@ -980,7 +980,7 @@ int make_http_soap_request(zval *this_ptr,
980980 */
981981 cookie_itt = ZSTR_VAL (http_headers );
982982
983- while ((cookie_itt = get_http_header_value_nodup (cookie_itt , "Set-Cookie: " , & cookie_len ))) {
983+ while ((cookie_itt = get_http_header_value_nodup (cookie_itt , "Set-Cookie:" , & cookie_len ))) {
984984 zval * cookies = Z_CLIENT_COOKIES_P (this_ptr );
985985 SEPARATE_ARRAY (cookies );
986986
@@ -1049,7 +1049,7 @@ int make_http_soap_request(zval *this_ptr,
10491049 if (http_1_1 ) {
10501050 http_close = FALSE;
10511051 if (use_proxy && !use_ssl ) {
1052- connection = get_http_header_value (ZSTR_VAL (http_headers ), "Proxy-Connection: " );
1052+ connection = get_http_header_value (ZSTR_VAL (http_headers ), "Proxy-Connection:" );
10531053 if (connection ) {
10541054 if (strncasecmp (connection , "close" , sizeof ("close" )- 1 ) == 0 ) {
10551055 http_close = TRUE;
@@ -1058,7 +1058,7 @@ int make_http_soap_request(zval *this_ptr,
10581058 }
10591059 }
10601060 if (http_close == FALSE) {
1061- connection = get_http_header_value (ZSTR_VAL (http_headers ), "Connection: " );
1061+ connection = get_http_header_value (ZSTR_VAL (http_headers ), "Connection:" );
10621062 if (connection ) {
10631063 if (strncasecmp (connection , "close" , sizeof ("close" )- 1 ) == 0 ) {
10641064 http_close = TRUE;
@@ -1069,7 +1069,7 @@ int make_http_soap_request(zval *this_ptr,
10691069 } else {
10701070 http_close = TRUE;
10711071 if (use_proxy && !use_ssl ) {
1072- connection = get_http_header_value (ZSTR_VAL (http_headers ), "Proxy-Connection: " );
1072+ connection = get_http_header_value (ZSTR_VAL (http_headers ), "Proxy-Connection:" );
10731073 if (connection ) {
10741074 if (strncasecmp (connection , "Keep-Alive" , sizeof ("Keep-Alive" )- 1 ) == 0 ) {
10751075 http_close = FALSE;
@@ -1078,7 +1078,7 @@ int make_http_soap_request(zval *this_ptr,
10781078 }
10791079 }
10801080 if (http_close == TRUE) {
1081- connection = get_http_header_value (ZSTR_VAL (http_headers ), "Connection: " );
1081+ connection = get_http_header_value (ZSTR_VAL (http_headers ), "Connection:" );
10821082 if (connection ) {
10831083 if (strncasecmp (connection , "Keep-Alive" , sizeof ("Keep-Alive" )- 1 ) == 0 ) {
10841084 http_close = FALSE;
@@ -1121,7 +1121,7 @@ int make_http_soap_request(zval *this_ptr,
11211121 if (http_status >= 300 && http_status < 400 ) {
11221122 char * loc ;
11231123
1124- if ((loc = get_http_header_value (ZSTR_VAL (http_headers ), "Location: " )) != NULL ) {
1124+ if ((loc = get_http_header_value (ZSTR_VAL (http_headers ), "Location:" )) != NULL ) {
11251125 php_url * new_url = php_url_parse (loc );
11261126
11271127 if (new_url != NULL ) {
@@ -1170,7 +1170,7 @@ int make_http_soap_request(zval *this_ptr,
11701170 zval * digest = Z_CLIENT_DIGEST_P (this_ptr );
11711171 zval * login = Z_CLIENT_LOGIN_P (this_ptr );
11721172 zval * password = Z_CLIENT_PASSWORD_P (this_ptr );
1173- char * auth = get_http_header_value (ZSTR_VAL (http_headers ), "WWW-Authenticate: " );
1173+ char * auth = get_http_header_value (ZSTR_VAL (http_headers ), "WWW-Authenticate:" );
11741174 if (auth && strstr (auth , "Digest" ) == auth && Z_TYPE_P (digest ) != IS_ARRAY
11751175 && Z_TYPE_P (login ) == IS_STRING && Z_TYPE_P (password ) == IS_STRING ) {
11761176 char * s ;
@@ -1240,7 +1240,7 @@ int make_http_soap_request(zval *this_ptr,
12401240 smart_str_free (& soap_headers_z );
12411241
12421242 /* Check and see if the server even sent a xml document */
1243- content_type = get_http_header_value (ZSTR_VAL (http_headers ), "Content-Type: " );
1243+ content_type = get_http_header_value (ZSTR_VAL (http_headers ), "Content-Type:" );
12441244 if (content_type ) {
12451245 char * pos = NULL ;
12461246 int cmplen ;
@@ -1270,7 +1270,7 @@ int make_http_soap_request(zval *this_ptr,
12701270 }
12711271
12721272 /* Decompress response */
1273- content_encoding = get_http_header_value (ZSTR_VAL (http_headers ), "Content-Encoding: " );
1273+ content_encoding = get_http_header_value (ZSTR_VAL (http_headers ), "Content-Encoding:" );
12741274 if (content_encoding ) {
12751275 zval func ;
12761276 zval retval ;
@@ -1430,18 +1430,18 @@ static zend_string* get_http_body(php_stream *stream, int close, char *headers)
14301430 int header_close = close , header_chunked = 0 , header_length = 0 , http_buf_size = 0 ;
14311431
14321432 if (!close ) {
1433- header = get_http_header_value (headers , "Connection: " );
1433+ header = get_http_header_value (headers , "Connection:" );
14341434 if (header ) {
14351435 if (!strncasecmp (header , "close" , sizeof ("close" )- 1 )) header_close = 1 ;
14361436 efree (header );
14371437 }
14381438 }
1439- header = get_http_header_value (headers , "Transfer-Encoding: " );
1439+ header = get_http_header_value (headers , "Transfer-Encoding:" );
14401440 if (header ) {
14411441 if (!strncasecmp (header , "chunked" , sizeof ("chunked" )- 1 )) header_chunked = 1 ;
14421442 efree (header );
14431443 }
1444- header = get_http_header_value (headers , "Content-Length: " );
1444+ header = get_http_header_value (headers , "Content-Length:" );
14451445 if (header ) {
14461446 header_length = atoi (header );
14471447 efree (header );
0 commit comments