static char *
php_apache_sapi_read_cookies(SLS_D)
{
+ php_struct *ctx = SG(server_context);
+ const char *http_cookie;
- return 0;
+ http_cookie = apr_table_get(ctx->f->r->headers_in, "cookie");
+
+ return (char *) http_cookie;
}
static void
if (ctx->state == 0) {
char *content_type;
+ char *auth;
CLS_FETCH();
ELS_FETCH();
PLS_FETCH();
efree(content_type);
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);
}
/* moves data from bb to ctx->bb */