Commit e88413bc authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Allocate HTTP.status from http's designated workspace.

parent 54543147
......@@ -1069,7 +1069,7 @@ http_Write(struct worker *w, unsigned vsl_id, const struct http *hp, int resp)
l = WRW_WriteH(w, &hp->hd[HTTP_HDR_PROTO], " ");
WSLH(w, vsl_id, hp, HTTP_HDR_PROTO);
hp->hd[HTTP_HDR_STATUS].b = WS_Alloc(w->ws, 4);
hp->hd[HTTP_HDR_STATUS].b = WS_Alloc(hp->ws, 4);
AN(hp->hd[HTTP_HDR_STATUS].b);
sprintf(hp->hd[HTTP_HDR_STATUS].b, "%3d", hp->status);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment