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

send empty object in body for requests other than GET #2589

Merged
merged 1 commit into from
Mar 21, 2019

Conversation

AllanZhengYP
Copy link
Contributor

The previous change #2574 breaks the SDK when request the method is 'PUT' or 'POST' and request body is '{}'. SDK used to send the body but later ignored the body after the change. This PR fix the bug reported here #2588 .

Checklist
  • npm run test passes
  • changelog is added, npm run add-change

@AllanZhengYP AllanZhengYP requested a review from srchase March 20, 2019 21:04
@codecov-io
Copy link

codecov-io commented Mar 20, 2019

Codecov Report

Merging #2589 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2589   +/-   ##
=======================================
  Coverage   96.81%   96.81%           
=======================================
  Files         282      282           
  Lines        8550     8550           
  Branches     1623     1623           
=======================================
  Hits         8278     8278           
  Misses        272      272
Impacted Files Coverage Δ
lib/protocol/rest_json.js 94.91% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7bff3d5...cd328c5. Read the comment docs.

@srchase
Copy link
Contributor

srchase commented Mar 20, 2019

:shipit:

@AllanZhengYP AllanZhengYP changed the title still send {} in body for requests other than GET send empty object in body for requests other than GET Mar 20, 2019
@AllanZhengYP AllanZhengYP merged commit 917e10c into aws:master Mar 21, 2019
@lock
Copy link

lock bot commented Sep 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 25, 2019
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.

3 participants