request_info->query_string = client->request.query_string;
request_info->post_data = client->request.content;
request_info->content_length = request_info->post_data_length = client->request.content_len;
+ request_info->auth_user = request_info->auth_password = request_info->auth_digest = NULL;
if (SUCCESS == zend_hash_find(&client->request.headers, "Content-Type", sizeof("Content-Type"), (void**)&val)) {
request_info->content_type = *val;
}
{
php_cli_server_client_populate_request_info(client, &SG(request_info));
{
- zval **val;
- if (SUCCESS == zend_hash_find(&client->request.headers, "Authorization", sizeof("Authorization"), (void**)&val)) {
- php_handle_auth_data(Z_STRVAL_PP(val) TSRMLS_CC);
+ char **auth;
+ if (SUCCESS == zend_hash_find(&client->request.headers, "Authorization", sizeof("Authorization"), (void**)&auth)) {
+ php_handle_auth_data(*auth TSRMLS_CC);
}
}
SG(sapi_headers).http_response_code = 200;
php_cli_server_client_populate_request_info(client, &SG(request_info));
{
- zval **val;
- if (SUCCESS == zend_hash_find(&client->request.headers, "Authorization", sizeof("Authorization"), (void**)&val)) {
- php_handle_auth_data(Z_STRVAL_PP(val) TSRMLS_CC);
+ char **auth;
+ if (SUCCESS == zend_hash_find(&client->request.headers, "Authorization", sizeof("Authorization"), (void**)&auth)) {
+ php_handle_auth_data(*auth TSRMLS_CC);
}
}
SG(sapi_headers).http_response_code = 200;