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

Allow ResponseData.Headers to support multiple values for the same key #1831

Merged
merged 2 commits into from
Oct 5, 2021

Conversation

amaitland
Copy link
Contributor

  • Without breaking the current API this change allows for arrays of values
    (Anything that implements ICollection and can be iterated over).
  • The Headers with null values will be ignored, previously an exception
    would have occurred with the Value.ToString() call so this is unlikely
    a breaking change in behaviour.
  • New test case added

Resolves #1542
Replaces #1607

@amaitland
Copy link
Contributor Author

Failing Linux test case looks unrelated. Please let me know if you think it's related and I'll look into it further.

- Without breaking the current API this change allows for arrays of values
  (Anything that implements ICollection and can be iterated over).
- The Headers with null values will be ignored, previously an exception
  would have occurred with the Value.ToString() call so this is unlikely
  a breaking change in behaviour.
- New test case added

Resolves hardkoded#1542
@amaitland amaitland force-pushed the enhancement/multipleheaders branch from c283c24 to 37769a7 Compare October 2, 2021 01:56
lib/PuppeteerSharp/Request.cs Outdated Show resolved Hide resolved
lib/PuppeteerSharp/Request.cs Outdated Show resolved Hide resolved
@kblok kblok merged commit 80a9aed into hardkoded:master Oct 5, 2021
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.

ResponseData.Headers can't deal with multiple headers with same name
2 participants