The pipe forwards the client host. #1748
Unanswered
royalpinto
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Simply Lines 1415 to 1422 in f896aa5 Or you can use a {
hooks: {
beforeRequest: [
options => {
delete options.headers.host;
}
]
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @szmarczak , Is it not supposed to be handled in the library itself as |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Actual behavior
The pipe request forwards all the client headers including the "Host"
Expected behavior
The pipe request should forwards all the client headers but not the "Host"
Code to reproduce
Output
Since the host doesn't match the hostname in the URL, it leads to a certificate error when hitting the actual service than the mocked one.
Checklist
Beta Was this translation helpful? Give feedback.
All reactions