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

Feature request: hasHeader #24

Open
honzajavorek opened this issue Sep 21, 2015 · 3 comments
Open

Feature request: hasHeader #24

honzajavorek opened this issue Sep 21, 2015 · 3 comments

Comments

@honzajavorek
Copy link

Sometimes I don't care about header's value.

@freaz
Copy link

freaz commented Sep 23, 2015

+1

@Prestaul
Copy link

@honzajavorek and @freaz, you can use a regexp to match any header value expectHeader('x-your-header', /.*/). It might be nice to have this be the default expectation if none is passed to expectHeader...

@wilmoore
Copy link

I think the two best solutions are:

1 - Accept a PR for hasHeader once someone devotes the time to do it.
2 - In the meantime, use expectHeader('x-your-header', /.*/).

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

4 participants