Skip to content

feat: allow connection header in request - #1747

Closed
ronag wants to merge 1 commit into
mainfrom
close-reset
Closed

ronag wants to merge 1 commit into
mainfrom
close-reset

Conversation

@ronag

@ronag ronag commented Oct 29, 2022 •

Copy link
Copy Markdown
Member

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

Comment thread lib/core/request.js
if (val.toLowerCase() === 'close') {
this.reset = true
} else if (val.toLowerCase() !== 'keep-alive') {
throw new InvalidArgumentError('invalid connection header')

Copy link
Copy Markdown
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?

@metcoder95 metcoder95 Dec 8, 2022 •

Copy link
Copy Markdown
Member

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?

@ronag ronag closed this Feb 25, 2024
@Uzlopak
Uzlopak deleted the close-reset branch February 26, 2024 01:38
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.

2 participants