prepare for cookie management in internal routing

This commit is contained in:
Unbit
2013-03-24 21:05:21 +01:00
parent f8a8c997db
commit bfcc09a8de
2 changed files with 10 additions and 0 deletions
+7
View File
@@ -354,6 +354,13 @@ static int uwsgi_proto_check_11(struct wsgi_request *wsgi_req, char *key, char *
return 0;
}
if (!uwsgi_proto_key("HTTP_COOKIE", 11)) {
wsgi_req->cookie = buf;
wsgi_req->cookie_len = len;
return 0;
}
if (!uwsgi_proto_key("UWSGI_APPID", 11)) {
wsgi_req->appid = buf;
wsgi_req->appid_len = len;
+3
View File
@@ -1236,6 +1236,9 @@ struct uwsgi_router {
char *referer;
uint16_t referer_len;
char *cookie;
uint16_t cookie_len;
char *path_info;
uint16_t path_info_len;
int path_info_pos;