Skip to content

Conversation

@abetwothree
Copy link

Currently, the regex is looking for HTTP version formats with major and minor versions.

HTTP/1.1 200 OK

This adds functionality to also grab status codes with only a major HTTP version like below

HTTP/2 200

Currently if you get a response with an HTTP version number with a single number the code throws an error.

Currently, the regex is looking for HTTP version formats with major and minor versions.
```
HTTP/1.1 200 OK
```

This adds functionality to also grab status codes with only a major HTTP version like below
```
HTTP/2 400
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant