@@ -980,7 +980,7 @@ int make_http_soap_request(zval *this_ptr,
980
980
*/
981
981
cookie_itt = ZSTR_VAL (http_headers );
982
982
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 ))) {
984
984
zval * cookies = Z_CLIENT_COOKIES_P (this_ptr );
985
985
SEPARATE_ARRAY (cookies );
986
986
@@ -1049,7 +1049,7 @@ int make_http_soap_request(zval *this_ptr,
1049
1049
if (http_1_1 ) {
1050
1050
http_close = FALSE;
1051
1051
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:" );
1053
1053
if (connection ) {
1054
1054
if (strncasecmp (connection , "close" , sizeof ("close" )- 1 ) == 0 ) {
1055
1055
http_close = TRUE;
@@ -1058,7 +1058,7 @@ int make_http_soap_request(zval *this_ptr,
1058
1058
}
1059
1059
}
1060
1060
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:" );
1062
1062
if (connection ) {
1063
1063
if (strncasecmp (connection , "close" , sizeof ("close" )- 1 ) == 0 ) {
1064
1064
http_close = TRUE;
@@ -1069,7 +1069,7 @@ int make_http_soap_request(zval *this_ptr,
1069
1069
} else {
1070
1070
http_close = TRUE;
1071
1071
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:" );
1073
1073
if (connection ) {
1074
1074
if (strncasecmp (connection , "Keep-Alive" , sizeof ("Keep-Alive" )- 1 ) == 0 ) {
1075
1075
http_close = FALSE;
@@ -1078,7 +1078,7 @@ int make_http_soap_request(zval *this_ptr,
1078
1078
}
1079
1079
}
1080
1080
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:" );
1082
1082
if (connection ) {
1083
1083
if (strncasecmp (connection , "Keep-Alive" , sizeof ("Keep-Alive" )- 1 ) == 0 ) {
1084
1084
http_close = FALSE;
@@ -1121,7 +1121,7 @@ int make_http_soap_request(zval *this_ptr,
1121
1121
if (http_status >= 300 && http_status < 400 ) {
1122
1122
char * loc ;
1123
1123
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 ) {
1125
1125
php_url * new_url = php_url_parse (loc );
1126
1126
1127
1127
if (new_url != NULL ) {
@@ -1170,7 +1170,7 @@ int make_http_soap_request(zval *this_ptr,
1170
1170
zval * digest = Z_CLIENT_DIGEST_P (this_ptr );
1171
1171
zval * login = Z_CLIENT_LOGIN_P (this_ptr );
1172
1172
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:" );
1174
1174
if (auth && strstr (auth , "Digest" ) == auth && Z_TYPE_P (digest ) != IS_ARRAY
1175
1175
&& Z_TYPE_P (login ) == IS_STRING && Z_TYPE_P (password ) == IS_STRING ) {
1176
1176
char * s ;
@@ -1240,7 +1240,7 @@ int make_http_soap_request(zval *this_ptr,
1240
1240
smart_str_free (& soap_headers_z );
1241
1241
1242
1242
/* 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:" );
1244
1244
if (content_type ) {
1245
1245
char * pos = NULL ;
1246
1246
int cmplen ;
@@ -1270,7 +1270,7 @@ int make_http_soap_request(zval *this_ptr,
1270
1270
}
1271
1271
1272
1272
/* 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:" );
1274
1274
if (content_encoding ) {
1275
1275
zval func ;
1276
1276
zval retval ;
@@ -1430,18 +1430,18 @@ static zend_string* get_http_body(php_stream *stream, int close, char *headers)
1430
1430
int header_close = close , header_chunked = 0 , header_length = 0 , http_buf_size = 0 ;
1431
1431
1432
1432
if (!close ) {
1433
- header = get_http_header_value (headers , "Connection: " );
1433
+ header = get_http_header_value (headers , "Connection:" );
1434
1434
if (header ) {
1435
1435
if (!strncasecmp (header , "close" , sizeof ("close" )- 1 )) header_close = 1 ;
1436
1436
efree (header );
1437
1437
}
1438
1438
}
1439
- header = get_http_header_value (headers , "Transfer-Encoding: " );
1439
+ header = get_http_header_value (headers , "Transfer-Encoding:" );
1440
1440
if (header ) {
1441
1441
if (!strncasecmp (header , "chunked" , sizeof ("chunked" )- 1 )) header_chunked = 1 ;
1442
1442
efree (header );
1443
1443
}
1444
- header = get_http_header_value (headers , "Content-Length: " );
1444
+ header = get_http_header_value (headers , "Content-Length:" );
1445
1445
if (header ) {
1446
1446
header_length = atoi (header );
1447
1447
efree (header );
0 commit comments