save the http request for spdy later on

This commit is contained in:
Joris Vink 2013-05-02 15:06:26 +02:00
parent 4fb8a13f1b
commit a025f0fa8e
2 changed files with 3 additions and 1 deletions

View File

@ -50,6 +50,7 @@ struct spdy_stream {
u_int8_t flags;
u_int8_t prio;
void *httpreq;
struct spdy_header_block *hblock;
TAILQ_ENTRY(spdy_stream) list;

View File

@ -374,7 +374,8 @@ spdy_ctrl_frame_syn_stream(struct netbuf *nb)
GET_HEADER(":path", &path);
GET_HEADER(":method", &method);
GET_HEADER(":host", &host);
if (!http_request_new(c, s, host, method, path, NULL)) {
if (!http_request_new(c, s, host, method, path,
(struct http_request **)&(s->httpreq))) {
free(s->hblock->header_block);
free(s->hblock);
free(s);