Selaa lähdekoodia

typo fix

upload-fix
Brice Figureau 17 vuotta sitten
vanhempi
commit
a05b17761c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      ngx_http_uploadprogress_module.c

+ 1
- 1
ngx_http_uploadprogress_module.c Näytä tiedosto

365
     if (up != NULL && !up->done) {
365
     if (up != NULL && !up->done) {
366
         ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ngx_cycle->log, 0,
366
         ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ngx_cycle->log, 0,
367
                        "upload-progress: read_event_handler found node: %V", id);
367
                        "upload-progress: read_event_handler found node: %V", id);
368
-        up->rest = up->rest >= r->request_body->rest ? r->request_body->rest : up->res;
368
+        up->rest = up->rest >= r->request_body->rest ? r->request_body->rest : up->rest;
369
         up->length = up->length == 0 ? r->headers_in.content_length_n : up->length;
369
         up->length = up->length == 0 ? r->headers_in.content_length_n : up->length;
370
         ngx_log_debug3(NGX_LOG_DEBUG_HTTP, ngx_cycle->log, 0,
370
         ngx_log_debug3(NGX_LOG_DEBUG_HTTP, ngx_cycle->log, 0,
371
                        "upload-progress: read_event_handler storing rest %uO/%uO for %V", up->rest, up->length, id);
371
                        "upload-progress: read_event_handler storing rest %uO/%uO for %V", up->rest, up->length, id);

Loading…
Peruuta
Tallenna