|
|
@@ -386,7 +386,7 @@ ngx_http_reportuploads_handler(ngx_http_request_t * r)
|
|
386
|
386
|
}
|
|
387
|
387
|
}
|
|
388
|
388
|
|
|
389
|
|
- if (orig == NULL) {
|
|
|
389
|
+ if (orig == NULL || orig->request_body == NULL) {
|
|
390
|
390
|
if (up != NULL && up->err_status != NGX_HTTP_REQUEST_ENTITY_TOO_LARGE) {
|
|
391
|
391
|
size = sizeof("new Object({ 'state' : 'done' })\r\n");
|
|
392
|
392
|
} else if (up != NULL && up->err_status == NGX_HTTP_REQUEST_ENTITY_TOO_LARGE) {
|
|
|
@@ -411,7 +411,7 @@ ngx_http_reportuploads_handler(ngx_http_request_t * r)
|
|
411
|
411
|
out.buf = b;
|
|
412
|
412
|
out.next = NULL;
|
|
413
|
413
|
|
|
414
|
|
- if (orig == NULL) {
|
|
|
414
|
+ if (orig == NULL || orig->request_body == NULL ) {
|
|
415
|
415
|
if (up == NULL) {
|
|
416
|
416
|
b->last = ngx_cpymem(b->last, "new Object({ 'state' : 'starting' })\r\n",
|
|
417
|
417
|
sizeof("new Object({ 'state' : 'starting' })\r\n") -
|