Fixed request method must be already supported

hyphen hyphen9 at foxmail.com
Tue Jan 19 04:04:54 UTC 2016


# HG changeset patch
# User goecho <hyphen9 at foxmail.com>
# Date 1453175856 -28800
#      Tue Jan 19 11:57:36 2016 +0800
# Node ID 25548a0b15afd46f3177c34a3d6af1dbe830cef0
# Parent  02abce4764b7c964e7ee6e10b1a7abf1fee95f79
Fixed request method must be already supported

diff -r 02abce4764b7 -r 25548a0b15af src/http/ngx_http_parse.c
--- a/src/http/ngx_http_parse.c Tue Jan 12 19:19:07 2016 +0300
+++ b/src/http/ngx_http_parse.c Tue Jan 19 11:57:36 2016 +0800
@@ -264,7 +264,10 @@
                     }

                     break;
-                }
+
+               default :
+                   return NGX_HTTP_PARSE_INVALID_METHOD;
+               }

                 state = sw_spaces_before_uri;
                 break;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20160119/20b242f8/attachment.html>


More information about the nginx-devel mailing list