diff --git a/includes/http.h b/includes/http.h index 0fed8b2..5191940 100644 --- a/includes/http.h +++ b/includes/http.h @@ -55,7 +55,7 @@ struct http_request { struct connection *owner; struct spdy_stream *stream; struct kore_buf *post_data; - void *cb_extra; + void *hdlr_extra; TAILQ_HEAD(, http_header) req_headers; TAILQ_HEAD(, http_header) resp_headers; diff --git a/includes/kore.h b/includes/kore.h index a27836f..01d6a96 100644 --- a/includes/kore.h +++ b/includes/kore.h @@ -120,6 +120,7 @@ struct connection { void *owner; SSL *ssl; u_int8_t flags; + void *hdlr_extra; u_int8_t addrtype; union { diff --git a/src/connection.c b/src/connection.c index 4fe7eca..9e5102e 100644 --- a/src/connection.c +++ b/src/connection.c @@ -68,6 +68,7 @@ kore_connection_accept(struct listener *l, struct connection **out) c->owner = l; c->ssl = NULL; c->flags = 0; + c->hdlr_extra = NULL; c->inflate_started = 0; c->deflate_started = 0; c->client_stream_id = 0; diff --git a/src/http.c b/src/http.c index dd06993..81d3802 100644 --- a/src/http.c +++ b/src/http.c @@ -65,8 +65,8 @@ http_request_new(struct connection *c, struct spdy_stream *s, char *host, req->owner = c; req->status = 0; req->stream = s; - req->cb_extra = NULL; req->post_data = NULL; + req->hdlr_extra = NULL; kore_strlcpy(req->host, host, sizeof(req->host)); kore_strlcpy(req->path, path, sizeof(req->path));