Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force setting of content-type: application/json for SAM to avoid http 415 error #22

Merged
merged 2 commits into from
Jun 17, 2021

Conversation

aherbst-broad
Copy link
Contributor

Why

Relevant ticket
We are getting an HTTP 415 error code when setting snapshots public. I have determined this is due to us not sending an Content-type: application/json header in our request.

This PR

  • Explicitly set the needed header in the request (python requests will generally do the right thing if you send a json={...} payload, but we're sending a raw data=true value which short-circuits the automatic setting of the header)
  • Bumps the version

@aherbst-broad aherbst-broad requested review from a team, raaidbroad, eparkmonster and quazi-h and removed request for a team June 17, 2021 18:17
@aherbst-broad aherbst-broad merged commit 2bdf9b6 into main Jun 17, 2021
@aherbst-broad aherbst-broad deleted the arh-dspdc-1795-make-snapshot-public branch June 17, 2021 20:02
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.

None yet

2 participants