We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem:
Application make request with two same headers with different values. Teremock create mock only for last of this headers.
Solution:
Read headers from request.rawHeaders, join duplicates to array, or concatenate with ,, for example:
request.rawHeaders
,
{ "request": { "url": "...", "method": "...", "headers": { "user-agent": [ "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/88.0.4298.0 Safari/537.36", "node-fetch" ] }, }, }
or
{ "request": { "url": "...", "method": "...", "headers": { "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/88.0.4298.0 Safari/537.36,node-fetch" }, }, }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem:
Application make request with two same headers with different values.
Teremock create mock only for last of this headers.
Solution:
Read headers from
request.rawHeaders
, join duplicates to array, or concatenate with,
, for example:or
The text was updated successfully, but these errors were encountered: