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

feat: allow connection header in request #1747

Closed
wants to merge 1 commit into from
Closed

feat: allow connection header in request #1747

wants to merge 1 commit into from

Conversation

ronag
Copy link
Member

@ronag ronag commented Oct 29, 2022

This seems to come up quite often. I'm opening this PR as stub for anyone that wants to finish it up. I think it mostly needs test and docs.

Refs: #1746
Refs: #1310
Refs: #1305
Refs: #444

if (val.toLowerCase() === 'close') {
this.reset = true
} else if (val.toLowerCase() !== 'keep-alive') {
throw new InvalidArgumentError('invalid connection header')
Copy link
Member Author

Choose a reason for hiding this comment

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

What if there is a conflict between header and reset option?

Copy link
Member

@metcoder95 metcoder95 Dec 8, 2022

Choose a reason for hiding this comment

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

Should reset be always taking the prevalence?

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