Update Nginx auf 1.13.1
This commit is contained in:
@@ -48,7 +48,7 @@ static ngx_command_t ngx_http_gzip_static_commands[] = {
|
||||
};
|
||||
|
||||
|
||||
ngx_http_module_t ngx_http_gzip_static_module_ctx = {
|
||||
static ngx_http_module_t ngx_http_gzip_static_module_ctx = {
|
||||
NULL, /* preconfiguration */
|
||||
ngx_http_gzip_static_init, /* postconfiguration */
|
||||
|
||||
@@ -238,7 +238,7 @@ ngx_http_gzip_static_handler(ngx_http_request_t *r)
|
||||
|
||||
h = ngx_list_push(&r->headers_out.headers);
|
||||
if (h == NULL) {
|
||||
return NGX_ERROR;
|
||||
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||
}
|
||||
|
||||
h->hash = 1;
|
||||
@@ -248,7 +248,7 @@ ngx_http_gzip_static_handler(ngx_http_request_t *r)
|
||||
|
||||
/* we need to allocate all before the header would be sent */
|
||||
|
||||
b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));
|
||||
b = ngx_calloc_buf(r->pool);
|
||||
if (b == NULL) {
|
||||
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user