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

Check common_headers when running assertion #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matmar10
Copy link
Contributor

Fixes issue #31

@matmar10
Copy link
Contributor Author

Ping. Can you merge this?

@@ -469,7 +469,7 @@ export default class Spec {

buildRequestBody(additionalOptions, headers, method) {
let bodyData = {};
let requestContentType = headers['content-type'];
let requestContentType = headers['content-type'] || this.suite.commonHeaders['content-type'];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matmar10 This is not required here, because the headers passed to this function include common headers too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I raised issue #31 because the current behavior does not include common headers set in config.

If you need, I can create a gist that reproduces this.

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

Successfully merging this pull request may close these issues.

None yet

2 participants