aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_variables.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2013-10-31 04:02:59 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2013-10-31 04:02:59 +0400
commitf1a9f14afe0d6ee9c37e335cd1d7bff000ada451 (patch)
tree10ce2d5ed8f6c14d27434841bfd121800ef72632 /src/http/ngx_http_variables.c
parent869b4f36e51c602d046ba9b74af86a21c82ce6bf (diff)
downloadnginx-f1a9f14afe0d6ee9c37e335cd1d7bff000ada451.tar.gz
nginx-f1a9f14afe0d6ee9c37e335cd1d7bff000ada451.zip
Removed extra allocation for $sent_http_last_modified.
There is no need to allocate memory for "Last-Modified: " string, the variable only contains date itself.
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r--src/http/ngx_http_variables.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c
index 3ec038aef..e49d2023b 100644
--- a/src/http/ngx_http_variables.c
+++ b/src/http/ngx_http_variables.c
@@ -1744,8 +1744,7 @@ ngx_http_variable_sent_last_modified(ngx_http_request_t *r,
}
if (r->headers_out.last_modified_time >= 0) {
- p = ngx_pnalloc(r->pool,
- sizeof("Last-Modified: Mon, 28 Sep 1970 06:00:00 GMT") - 1);
+ p = ngx_pnalloc(r->pool, sizeof("Mon, 28 Sep 1970 06:00:00 GMT") - 1);
if (p == NULL) {
return NGX_ERROR;
}