Skip to content

Commit

Permalink
lowered the error log level for HTTP 0.9 requests from "error" to "wa…
Browse files Browse the repository at this point in the history
…rn".
  • Loading branch information
agentzh committed Sep 2, 2015
1 parent 0bfd653 commit 18eb46f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ngx_http_iconv_module.c
Expand Up @@ -150,7 +150,7 @@ ngx_http_iconv_header_filter(ngx_http_request_t *r)
}

if (r->http_version < NGX_HTTP_VERSION_10) {
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
ngx_log_error(NGX_LOG_WARN, r->connection->log, 0,
"iconv does not support HTTP < 1.0 yet");
return ngx_http_next_header_filter(r);
}
Expand Down
6 changes: 5 additions & 1 deletion t/bugs.t
Expand Up @@ -5,7 +5,7 @@ use Test::Nginx::Socket;

repeat_each(3);

plan tests => repeat_each() * (2 * blocks() + 1);
plan tests => repeat_each() * (2 * blocks() + 3);

#no_long_string();

Expand Down Expand Up @@ -108,3 +108,7 @@ Connection: close\r
--- grep_error_log eval: qr/iconv does not support HTTP < 1.0 yet/
--- grep_error_log_out
iconv does not support HTTP < 1.0 yet
--- error_log
[warn]
--- no_error_log
[error]

0 comments on commit 18eb46f

Please sign in to comment.