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

Handle LazySeq key value in RingResponseAdapter header add #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

terop
Copy link

@terop terop commented Jul 14, 2022

See the commit message description on the rationale of this change. There is unfortunately not a unit test as I was not able to figure out how to add one to the current unit tests.

I also fixed a minor error in the contributing document.

Ring produces a "Set-Cookie" header with a LazySeq as value that cannot
directly be cast into a CharSequence and causes an error. Thus the key
type must first be checked and the first item taken before creating a
header.

Currently only the first value is taken and is obviously broken if
the sequence contains more than item. IMO this can be handled later
in case this situation arises.
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

1 participant