Skip to content

Custom headers fixes#224

Merged
seanadkinson merged 1 commit into
odysseyscience:masterfrom
dobesv:content-type-fixup
Nov 4, 2020
Merged

Custom headers fixes#224
seanadkinson merged 1 commit into
odysseyscience:masterfrom
dobesv:content-type-fixup

Conversation

@dobesv

@dobesv dobesv commented Oct 27, 2020

Copy link
Copy Markdown
Contributor
  • Allow signResult.headers / uploadRequestHeaders to override content-type
  • Allow signResult.headers to override x-amz-acl
  • Allow uploadRequestHeaders to override signResult.headers
  • Don't set content-type from file.type if file.type is not set

Previously if a header came from two places it would be given two values, which is almost never what was intended.

- Allow `signResult.headers` / `uploadRequestHeaders` to override `content-type` & `content-disposition`
- Allow `signResult.headers` to override `x-amz-acl`
- Allow `uploadRequestHeaders` to override `signResult.headers`
- Don't set `content-type` from `file.type` if `file.type` is not set

Previously if a header came from two places it would be given two values, which is almost never what was intended.
@dobesv dobesv force-pushed the content-type-fixup branch from fea278c to 1b64eac Compare October 27, 2020 23:49
@seanadkinson seanadkinson merged commit b2545c7 into odysseyscience:master Nov 4, 2020
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