AlexanderMac / http-z

Parse/build HTTP message to/from model
MIT License
17 stars 6 forks source link

Process requests with path `/` in parser #21

Closed AlexanderMac closed 5 years ago

AlexanderMac commented 5 years ago

If request message startRow contains request to server without path: GET / HTTP/1.1, then parser throws an error. Need to change regexp to allow empty paths:

const RegExpStrings = {
  ...
  path: '\\/\\S*'
};
AlexanderMac commented 5 years ago

Fixed.