]> git.kaiwu.me - nginx.git/commitdiff
HTTP/2: use local pointer instead of r->connection.
authorValentin Bartenev <vbart@nginx.com>
Tue, 16 Feb 2016 14:49:14 +0000 (17:49 +0300)
committerValentin Bartenev <vbart@nginx.com>
Tue, 16 Feb 2016 14:49:14 +0000 (17:49 +0300)
No functional changes.

src/http/v2/ngx_http_v2_filter_module.c

index c824138d20315dd2134e4b3e3f85d28dedd1f8b8..d93965c969d6d93b3502dd8233799b3236a4abb4 100644 (file)
@@ -387,14 +387,14 @@ ngx_http_v2_header_filter(ngx_http_request_t *r)
         }
 
         if (header[i].key.len > NGX_HTTP_V2_MAX_FIELD) {
-            ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,
+            ngx_log_error(NGX_LOG_CRIT, fc->log, 0,
                           "too long response header name: \"%V\"",
                           &header[i].key);
             return NGX_ERROR;
         }
 
         if (header[i].value.len > NGX_HTTP_V2_MAX_FIELD) {
-            ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,
+            ngx_log_error(NGX_LOG_CRIT, fc->log, 0,
                           "too long response header value: \"%V: %V\"",
                           &header[i].key, &header[i].value);
             return NGX_ERROR;