Permalink
Browse files

bugfix: fixed compatibility with nginx 1.5.3+ for the new upstream C …

…API. thanks Markus Linnala for the patch in #11.
  • Loading branch information...
1 parent 6081fe5 commit cfcb5791759717d9d7bdc486984768aae93e6773 @agentzh agentzh committed Aug 30, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/ngx_http_memc_response.c
  2. +1 −1 src/ngx_http_memc_response.rl
@@ -378,7 +378,7 @@ ngx_http_memc_get_cmd_filter_init(void *data)
dd("filter init: u->length: %d", (int) u->length);
- u->length += NGX_HTTP_MEMC_END;
+ u->length = u->headers_in.content_length_n + NGX_HTTP_MEMC_END;
dd("filter init (2): u->length: %d", (int) u->length);
@@ -274,7 +274,7 @@ ngx_http_memc_get_cmd_filter_init(void *data)
dd("filter init: u->length: %d", (int) u->length);
- u->length += NGX_HTTP_MEMC_END;
+ u->length = u->headers_in.content_length_n + NGX_HTTP_MEMC_END;
dd("filter init (2): u->length: %d", (int) u->length);

0 comments on commit cfcb579

Please sign in to comment.