Skip to content

Headers should be compared with case ignored #1237

@betalb

Description

@betalb

Summary

Headers provided in config are merged with defaults without checking for existing value that can be in different case

i.e. when doing below request we can't predict which value will be set from defaults Accept or from config accept

axios.request(url, {
  headers: {
    accept: 'some-accept-value'
  }
});

Chrome will set Accept, which is not expected

Context

  • axios version: 0.17.0
  • Environment: node v9.2.1, chrome 63, macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions