Bläddra i källkod

Make this work even if X-Progress-ID is not the last parameter

tags/v0.8
Bruno Deferrari 16 år sedan
förälder
incheckning
8c2ef68a79
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      ngx_http_uploadprogress_module.c

+ 2
- 2
ngx_http_uploadprogress_module.c Visa fil

@@ -297,8 +297,8 @@ get_tracking_id(ngx_http_request_t * r)
297 297
         if (i) {
298 298
             start_p = p += 14;
299 299
             while (p < args.data + args.len) {
300
-                if (*p++ != '&') {
301
-                    continue;
300
+                if (*((p++) + 1) == '&') {
301
+                    break;
302 302
                 }
303 303
             }
304 304
 

Laddar…
Avbryt
Spara