Browse Source

[5077] Removed extraneous state transitions in HTTP request parser.

Marcin Siodelski 8 years ago
parent
commit
67e69191f8
1 changed files with 0 additions and 3 deletions
  1. 0 3
      src/lib/http/request_parser.cc

+ 0 - 3
src/lib/http/request_parser.cc

@@ -347,7 +347,6 @@ HttpRequestParser::uriHandler() {
 
         } else if (isCtl(c)) {
             parseFailure("control character found in HTTP URI");
-            transition(HTTP_PARSE_FAILED_ST, HTTP_PARSE_FAILED_EVT);
 
         } else {
             // Still parsing the URI. Append the next character to the
@@ -397,7 +396,6 @@ HttpRequestParser::versionNumberStartHandler(const unsigned int next_state,
         } else {
             parseFailure("expected digit in HTTP version, found " +
                          std::string(1, c));
-            transition(HTTP_PARSE_FAILED_ST, HTTP_PARSE_FAILED_EVT);
         }
     });
 }
@@ -421,7 +419,6 @@ HttpRequestParser::versionNumberHandler(const char following_character,
         } else {
             parseFailure("expected digit in HTTP version, found " +
                          std::string(1, c));
-            transition(HTTP_PARSE_FAILED_ST, HTTP_PARSE_FAILED_EVT);
         }
     });
 }