8000 Multible http response headers with the same name get overwritten · Issue #4069 · espressif/arduino-esp32 · GitHub
[go: up one dir, main page]

Skip to content
Multible http response headers with the same name get overwritten #4069
Closed
@jonasniesner

Description

@jonasniesner

If the http client gets multible headers with the same name in the response (for example set-cookie headers), they get overwritten. My way to fix it was to change

if(_currentHeaders[i].key.equalsIgnoreCase(headerName)) {

to

if(_currentHeaders[i].key.equalsIgnoreCase(headerName) && _currentHeaders[i].value.length() == 0) {

to check if the header value is not set to avoid overwriting when saving multible headers with the same name

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0