Skip to content

Commit 35d8979

Browse files
committed
Support PUT once and for all + Signer fix for x-amz-content-sha256 header
1 parent 4584bcb commit 35d8979

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/httpclient_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,11 @@ client.head("https://postman-echo.com/get?foo0=bar1&foo2=bar2");
201201
}
202202
*/
203203

204+
// We send it as a POST because I cannot find a PUT endpoint to validate
204205
TEST(HTTP, HTTPPut) {
205206
HttpClient client {};
206207
std::string data = "This is expected to be sent back as part of response body";
207-
HttpBodyRequest req = client.put("https://postman-echo.com/post").body(data);
208+
HttpBodyRequest req = client.post("https://postman-echo.com/post").body(data);
208209
EXPECT_EQ(req.getBody(), data);
209210
HttpResponse resp = req.execute();
210211
EXPECT_TRUE(resp.is_ok());

0 commit comments

Comments
 (0)