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

setHeader should return this #268

Merged
merged 1 commit into from Mar 13, 2023
Merged

Conversation

jeysal
Copy link
Contributor

@jeysal jeysal commented Feb 27, 2023

You can try in Node e.g. new (require('http').OutgoingMessage)().setHeader('a', 'b').setHeader('b', 'c')

@jeysal
Copy link
Contributor Author

jeysal commented Feb 27, 2023

This could be considered a breaking change, but I would consider it a bugfix

@eugef eugef self-assigned this Mar 9, 2023
@eugef
Copy link
Owner

eugef commented Mar 13, 2023

Hi @jeysal, thanks for your contribution.

I tend to agree with you, it looks more like a bug fix that will make mock compatible with the actual implementation

@eugef eugef merged commit 7665e06 into eugef:master Mar 13, 2023
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