Selaa lähdekoodia

Fixed bug: passing wrong template index

tags/v0.7
Valery Kholodkov 17 vuotta sitten
vanhempi
commit
b0e4c4a001
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

@@ -1482,7 +1482,7 @@ ngx_http_upload_progress_json_output(ngx_conf_t * cf, ngx_command_t * cmd, void
1482 1482
     t = (ngx_http_uploadprogress_template_t*)upcf->templates.elts;
1483 1483
 
1484 1484
     for(i = 0;i < upcf->templates.nelts;i++) {
1485
-        rc = ngx_http_upload_progress_set_template(cf, t, ngx_http_uploadprogress_json_defaults + i);
1485
+        rc = ngx_http_upload_progress_set_template(cf, t + i, ngx_http_uploadprogress_json_defaults + i);
1486 1486
 
1487 1487
         if(rc != NGX_CONF_OK) {
1488 1488
             return rc;

Loading…
Peruuta
Tallenna