mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 20:53:30 +08:00
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.
This commit is contained in:
parent
869b4f36e5
commit
f1a9f14afe
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user