Skip to content

Grab status code from response with only one HTTP version number - #1

Open
abetwothree wants to merge 3 commits into
roottusk:masterfrom
abetwothree:Support-single-HTTP-version-numbers
Open

Grab status code from response with only one HTTP version number#1
abetwothree wants to merge 3 commits into
roottusk:masterfrom
abetwothree:Support-single-HTTP-version-numbers

Conversation

@abetwothree

Copy link
Copy Markdown

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