spray client - preserve headers on redirect

19 views
Skip to first unread message

Siju Varghese

unread,
Jun 22, 2016, 3:09:59 PM6/22/16
to spray.io User List
Hi,

I have configured the max-redirects directive, but notice that the headers I set on the original request and not preserved on the redirected request.
How do I ensure that the initial headers are preserved ?


André

unread,
Jun 23, 2016, 4:48:51 AM6/23/16
to spray.io User List
Hi Siju,

for security reasons, no headers on re-transferred on redirects. This could be loosened for relative/local redirects in the future.

As a workaround you can keep the default of max-redirects = 0 and handle redirects yourself. See the current impl here.

HTH
André
Reply all
Reply to author
Forward
0 new messages