Add test for invalid integer headers. #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When investigating socketry/protocol-rack#2 I found that
puma
will accept integer header values (and probably anything that has#to_s
). This is a superset of the spec (non-string/non-array-of-string header values are rejected byRack::Lint
), but it has caused users of less strict (e.g. basically every server according to this test) to create apps that are incompatible with servers that follow the spec more strictly.Possible outcomes:
to_s
where it makes sense.Being more strict will likely break people's applications. Therefore, my initial conclusion is to make
falcon
/rack-protocol
more compatible... but if we decide a different outcome, I'll implement that.cc @MSP-Greg @nateberkopec @jeremyevans @tenderlove
Types of Changes
Contribution