[PATCH] nginx_uploadprogress module
Sergey A. Osokin
osa at macomnet.ru
Tue Jun 30 11:12:04 MSD 2009
Добрый день.
Artemiev Igor (aka ai at kliksys dot ru) открыл PR 136064,
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/136064,
и прислал патч для third-party модуля nginx_uploadprogress
для исправления обработки запросов вида:
"GET /progress?X-Progress-ID=09e409d35e1b9dd1b5a2982709ac79eb&JsHttpRequest=12460060723877-script HTTP/1.1"
Просьба всем использующим указанный модуль протестировать
изменения.
Спасибо.
--
Sergey A. Osokin,
System Engineer,
Macomnet, Internet Dept.
tel: +7 (495) 796-9079
fax: +7 (495) 796-9067
Index: ports/www/nginx/Makefile
===================================================================
RCS file: /home/pcvs/ports/www/nginx/Makefile,v
retrieving revision 1.153
diff -u -r1.153 Makefile
--- ports/www/nginx/Makefile 26 Jun 2009 08:16:27 -0000 1.153
+++ ports/www/nginx/Makefile 29 Jun 2009 11:59:59 -0000
@@ -311,6 +311,10 @@
@${PATCH} ${PATCH_ARGS} < \
${PATCHDIR}/extra-patch-ngx_http_fancyindex_module.c
.endif
+.if defined(WITH_HTTP_UPLOAD_PROGRESS)
+ @${PATCH} ${PATCH_ARGS} < \
+ ${PATCHDIR}/extra-patch-ngx_http_uploadprogress_module.c
+.endif
.if defined(WITH_PASSENGER_MODULE)
@${REINPLACE_CMD} 's!g++!${CXX}!' \
${WRKDIR}/passenger-${PASSENGER_VERSION}/Rakefile
--- /dev/null 2009-06-29 15:55:00.000000000 +0400
+++ ports/www/nginx/files/extra-patch-ngx_http_uploadprogress_module.c 2009-06-26 15:45:08.000000000 +0400
@@ -0,0 +1,14 @@
+--- ../nginx_uploadprogress_module/ngx_http_uploadprogress_module.c.orig 2009-06-26 15:32:01.000000000 +0400
++++ ../nginx_uploadprogress_module/ngx_http_uploadprogress_module.c 2009-06-26 15:38:30.000000000 +0400
+@@ -187,8 +187,9 @@
+ if (i) {
+ start_p = p += 14;
+ while (p < r->args.data + r->args.len) {
+- if (*p++ != '&') {
+- continue;
++ if (*p++ == '&') {
++ p--;
++ break;
+ }
+ }
+
More information about the nginx-ru
mailing list