Skip to content

Commit 8bfea20

Browse files
committed
Fixed bug: crash on missing Content-Type header
1 parent 362cdd9 commit 8bfea20

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Changelog

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11

2+
Version 2.0.8
3+
* Fixed bug: crash on missing Content-Type request header
4+
* Fixed bug: compilation problem on amd 64
5+
26
Version 2.0.7
37
* Change: file size and output body size restrictions
48
* Added feature: directive upload_pass_args enables forwarding

ngx_http_upload_module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ ngx_http_upload_handler(ngx_http_request_t *r)
560560

561561
// Check whether Content-Type header is missing
562562
if(r->headers_in.content_type == NULL) {
563-
ngx_log_error(NGX_LOG_ERR, u->log, ngx_errno,
563+
ngx_log_error(NGX_LOG_ERR, r->connection->log, ngx_errno,
564564
"missing Content-Type header");
565565
return NGX_HTTP_BAD_REQUEST;
566566
}

0 commit comments

Comments
 (0)