aboutsummaryrefslogtreecommitdiffstats
path: root/www/nginx-devel/files
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2009-12-26 21:04:41 +0800
committerosa <osa@FreeBSD.org>2009-12-26 21:04:41 +0800
commit584bc9216745d52a6cef49718e93395e00604fa3 (patch)
treeb1cdc402d5db7172614fa31a604db7941998589b /www/nginx-devel/files
parentc746548f364a9bd12f57ab2a02c44fe652f8ccd0 (diff)
downloadfreebsd-ports-gnome-584bc9216745d52a6cef49718e93395e00604fa3.tar.gz
freebsd-ports-gnome-584bc9216745d52a6cef49718e93395e00604fa3.tar.zst
freebsd-ports-gnome-584bc9216745d52a6cef49718e93395e00604fa3.zip
Update http_redis module from 0.3.0 to 0.3.1.
Cosmetic whitespace fix for Makefile. Do not bump PORTREVISIONs. <ChangeLog> *) Change: return 502 instead of 404 for error. *) Change: better error messages diagnostics. *) Bugfix: interoperability with redis; the bug had appeared in 0.3.0. </ChangeLog>
Diffstat (limited to 'www/nginx-devel/files')
-rw-r--r--www/nginx-devel/files/extra-patch-ngx_http_redis_module.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/www/nginx-devel/files/extra-patch-ngx_http_redis_module.c b/www/nginx-devel/files/extra-patch-ngx_http_redis_module.c
deleted file mode 100644
index 57d944b6d3a0..000000000000
--- a/www/nginx-devel/files/extra-patch-ngx_http_redis_module.c
+++ /dev/null
@@ -1,45 +0,0 @@
---- ../ngx_http_redis-0.3.0/ngx_http_redis_module.c.orig 2009-12-23 16:55:12.000000000 +0300
-+++ ../ngx_http_redis-0.3.0/ngx_http_redis_module.c 2009-12-24 18:09:13.000000000 +0300
-@@ -343,17 +343,29 @@
- ngx_http_redis_process_header(ngx_http_request_t *r)
- {
- u_char *p, *len;
-- u_int c = 0;
-+ u_int c, try;
- ngx_str_t line;
- ngx_http_upstream_t *u;
- ngx_http_redis_ctx_t *ctx;
-
-+ c = try = 0;
-+
- u = r->upstream;
-
-+ p = u->buffer.pos;
-+
-+ if (*p == '+') {
-+ try = 2;
-+ } else if (*p == '-') {
-+ try = 1;
-+ } else {
-+ goto no_valid;
-+ }
-+
- for (p = u->buffer.pos; p < u->buffer.last; p++) {
- if (*p == LF) {
- c++;
-- if (c == 2) {
-+ if (c == try) {
- goto found;
- }
- }
-@@ -379,8 +391,8 @@
- ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
- "error was received from redis");
-
-- u->headers_in.status_n = 404;
-- u->state->status = 404;
-+ u->headers_in.status_n = 502;
-+ u->state->status = 502;
-
- return NGX_OK;
- }