Skip to content

Conversation

@Zegnat
Copy link
Contributor

@Zegnat Zegnat commented Aug 21, 2018

What's in this PR?

Adding one extra test for withHeader.

Why?

It doesn’t look like there was a test for empty header values, those are allowed per RFC 7230, see Nyholm/psr7#38.

Checklist

  • Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix

To Do

  • Verify that the checks for disallowing empty header names works.
  • Possibly add more tests? Multiple of the same header with empty values? How far does this need to go?

Happy to update the CHANGELOG when decided that the PR is done.

Cannot use getHeaderLine here, as that defaults to an empty string.
@Nyholm
Copy link
Member

Nyholm commented Sep 2, 2018

Great!

@Nyholm Nyholm merged commit 5dfefb2 into php-http:master Sep 2, 2018
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