-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix KeyError with missing Host in HTTP::Request
When calling `HTTP::Client#exec` with an `HTTP::Request` instance the Host header is not automatically filled by the http client, so we need to add it manually or the `host_matches?` check in the stub will fail with a `KeyError` exception.
- Loading branch information
1 parent
7e7e7ff
commit 00574dd
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters