Mercurial > hg > nginx
comparison src/http/modules/ngx_http_memcached_module.c @ 5801:ab48149b77a6
Style: use specified macro instead of magic-number.
author | Tatsuhiko Kubo <cubicdaiya@gmail.com> |
---|---|
date | Wed, 06 Aug 2014 23:58:44 +0900 |
parents | d80543940f9a |
children | d09b689911ac |
comparison
equal
deleted
inserted
replaced
5800:0570e42ffeed | 5801:ab48149b77a6 |
---|---|
389 | 389 |
390 start = p; | 390 start = p; |
391 p = line.data + line.len; | 391 p = line.data + line.len; |
392 | 392 |
393 u->headers_in.content_length_n = ngx_atoof(start, p - start); | 393 u->headers_in.content_length_n = ngx_atoof(start, p - start); |
394 if (u->headers_in.content_length_n == -1) { | 394 if (u->headers_in.content_length_n == NGX_ERROR) { |
395 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | 395 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, |
396 "memcached sent invalid length in response \"%V\" " | 396 "memcached sent invalid length in response \"%V\" " |
397 "for key \"%V\"", | 397 "for key \"%V\"", |
398 &line, &ctx->key); | 398 &line, &ctx->key); |
399 return NGX_HTTP_UPSTREAM_INVALID_HEADER; | 399 return NGX_HTTP_UPSTREAM_INVALID_HEADER; |