Permalink
Browse files

fixed a bug in the previous commit: we should copy the whole content …

…of the incoming bufs from the request body, not just ->pos and ->last.
  • Loading branch information...
1 parent 8b93fc8 commit b2aeae268b808f28ae29628e213f90739cba8e7a @agentzh agentzh committed Jun 28, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/ngx_http_memc_request.c
@@ -216,8 +216,7 @@ ngx_http_memc_create_storage_cmd_request(ngx_http_request_t *r)
}
cl->buf->memory = 1;
- cl->buf->pos = in->buf->pos;
- cl->buf->last = in->buf->last;
+ *cl->buf = *in->buf;
*ll = cl;
ll = &cl->next;

0 comments on commit b2aeae2

Please sign in to comment.