Skip to content

Conversation

skaringa
Copy link
Contributor

@skaringa skaringa commented Oct 2, 2025

HTTP headers are preserved over redirects.
Additional re-directed requests will include the same headers like the original request.

Fixes issue #3173

Copy link
Owner

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the log here will just clear the _headers member variable on a redirect, but I thought you were trying to save those headers. Maybe there's more to the diff?

Copy link
Owner

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation. I missed the fact this was in a do..while. HTTPClient is one of the classes ported from the ESP8266 and has had a lot of authors and some interesting logic.

Anyway, LGTM now that I've got your explanation and a better look at the code!

@earlephilhower earlephilhower merged commit d81478b into earlephilhower:master Oct 3, 2025
32 checks passed
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