Skip to content

Commit 18a845a

Browse files
committed
[fix] fix a bug introduced in last PR.
1 parent 3f7bdf5 commit 18a845a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ This module is based on Nginx upload module (v 2.2.0) http://www.grid.net.ru/ngi
55
Since it seems the author has not maintained that module. I changed some codes that can be installed with latest nginx.
66

77
- note
8+
89
When compiled with nginx-1.11.2 and later versions, if https is needed, please add configuration option `--with-http_ssl_module`.
910

1011
- install
12+
1113
./configure --add-module={module_dir} && make && make install
1214

1315
- conf

ngx_http_upload_module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2541,7 +2541,7 @@ ngx_http_upload_merge_ranges(ngx_http_upload_ctx_t *u, ngx_http_upload_range_t *
25412541
int res = ftruncate(state_file->fd, out_buf.file_pos);
25422542
if(res == EBADF || res == EINVAL) {
25432543
rc = NGX_ERROR;
2544-
go failed;
2544+
goto failed;
25452545
}
25462546
}
25472547

0 commit comments

Comments
 (0)