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

Ability to use RawHeader with akka-http backend #1727

Open
kvma opened this issue Feb 8, 2023 · 1 comment
Open

Ability to use RawHeader with akka-http backend #1727

kvma opened this issue Feb 8, 2023 · 1 comment

Comments

@kvma
Copy link

kvma commented Feb 8, 2023

I'm observing that when using the akka-http backend, headers with values that contain key-value-pairs, double quotes will get stripped out:

i.e.

Authorization: My-Request-Auth k1="v1" k2="v2,v3"

Which seems to be caused by akka http's parse:

.map(h => HttpHeader.parse(h.name, h.value))

When using akka-http directly I could get around this by passing in a RawHeader. Is it possible to expose the ability for sttp3 to avoid the parsing call and optionally use a RawHeader?

@adamw
Copy link
Member

adamw commented Feb 9, 2023

Hm is this a known issue in akka-http? I guess reporting it won't do any good, but still ...

I guess we could replace this with raw headers, maybe you can try preparing a PR?

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

No branches or pull requests

2 participants