Permalink
Browse files

bug fix, update state file only for raw input.

  • Loading branch information...
1 parent 97639a5 commit ef44389c09ff32dfb9dc0e6ea119ef8a5fa92731 @bigplum committed Apr 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ngx_http_upload_module.c
View
@@ -736,7 +736,7 @@ ngx_http_upload_cleanup_part(void *data)
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"cleanup http upload request, out offset: %d", u->output_file.offset);
- if(!u->output_file.offset ||
+ if(!u->raw_input || !u->output_file.offset ||
u->output_file.offset == u->content_range_n.end + 1)
{
return;

0 comments on commit ef44389

Please sign in to comment.