arnemolland / sigv4

Dart library for signing AWS requests with Signature Version 4
MIT License
17 stars 23 forks source link

Dart HTTP library modifies Content-Type #18

Closed edlea closed 3 years ago

edlea commented 3 years ago

The Dart HTTP library updates "application/json" to "application/json; charset=utf-8" which results in an invalid signature for POST or PUT requests that did not specify a content-type.

This forces the correct Content-Type header by default.

arnemolland commented 3 years ago

Looks good. Thanks for the PR!