Skip to content
New issue

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

Improve the error message when a header value does not match the assertion #61

Closed
adrianiftode opened this issue Apr 8, 2021 · 0 comments

Comments

@adrianiftode
Copy link
Owner

In this example, the header actually exists, but the error message suggests it doesn't. A better message would express the fact the value differs.

Expected value to contain the HTTP header "Location" having value "/api/iab/optout", but no such header was found in the actual response. 
 
 The HTTP response was:

HTTP/1.1 302 Redirect
Vary: Cookie
Location: /api/iab/status
Set-Cookie: XSRF-TOKEN=Fpxq1CaquEChrslAeZ37TAa; path=/
Content-Length: 0

***** Content is of a stream type having the length 0. *****

The originated HTTP request was:

GET https://.../api/iab/coop?action=3 HTTP 2.0
Cookie: 
Content-Length: 0
adrianiftode pushed a commit that referenced this issue Mar 18, 2022
alue does not match the assertion #61
adrianiftode added a commit that referenced this issue Mar 18, 2022
…not-match

Improve the error message for header values
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

No branches or pull requests

1 participant