apr_table_set(f->r->headers_in, "Connection", "close");
apr_table_unset(f->r->headers_out, "Content-Length");
auth = apr_table_get(f->r->headers_in, "Authorization");
- if (auth)
- php_handle_auth_data(auth SLS_CC);
+ php_handle_auth_data(auth SLS_CC);
}
/* moves data from bb to ctx->bb */
SG(sapi_headers).http_response_code = 200;
/* The CGI RFC allows servers to pass on unvalidated Authorization data */
- if ((auth = getenv("HTTP_AUTHORIZATION"))) {
- php_handle_auth_data(auth SLS_CC);
- } else {
- SG(request_info).auth_user = NULL;
- SG(request_info).auth_password = NULL;
- }
-
+ auth = getenv("HTTP_AUTHORIZATION");
+ php_handle_auth_data(auth SLS_CC);
}
SG(request_info).content_type = TG(hc)->contenttype;
SG(request_info).content_length = TG(hc)->contentlength;
- SG(request_info).auth_user = NULL;
- SG(request_info).auth_password = NULL;
-
php_handle_auth_data(TG(hc)->authorization SLS_CC);
TG(post_off) = TG(hc)->read_idx - TG(hc)->checked_idx;