Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Pass in User-Agent header in PUT / POST requests#435

Merged
paulomarg merged 1 commit intomainfrom
fix_post_put_headers
Jul 28, 2022
Merged

Pass in User-Agent header in PUT / POST requests#435
paulomarg merged 1 commit intomainfrom
fix_post_put_headers

Conversation

@paulomarg
Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

When sending PUT / POST requests, we were overwriting all of the headers to add the Content-* ones, instead of extending what was set before. That meant that we were dropping the User-Agent header we set before.

WHAT is this pull request doing?

Extending the right object after setting the PUT/POST-specific headers.

Type of change

  • Patch: Bug (non-breaking change which fixes an issue)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above
  • I have added/updated tests for this change

@paulomarg paulomarg requested a review from a team as a code owner July 28, 2022 15:50
@paulomarg paulomarg force-pushed the fix_post_put_headers branch from 84a5722 to 0cfaa4d Compare July 28, 2022 15:51
@paulomarg paulomarg merged commit bf85242 into main Jul 28, 2022
@paulomarg paulomarg deleted the fix_post_put_headers branch July 28, 2022 18:44
@shopify-shipit shopify-shipit Bot temporarily deployed to production July 28, 2022 19:27 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants