Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cherry picked relevant chunked transfer encoding commits from master#833

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
Removed setting chunk markers option to default value
  • Loading branch information
@umennel
umennel committedMar 31, 2018
commit1117da4e7dac1a6877a033f57a0053feea6817d2
2 changes: 0 additions & 2 deletionslibs/network/test/http/client_get_different_port_test.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,8 +16,6 @@ TYPED_TEST_CASE(HTTPClientTest, ClientTypes);

TYPED_TEST(HTTPClientTest, GetDifferentPort) {
using client = TypeParam;
typename client::options options;
options.remove_chunk_markers(true);
client client_;
typename TypeParam::request request("http://www.boost.org:80/");
auto response_ = client_.get(request);
Expand Down
6 changes: 2 additions & 4 deletionslibs/network/test/http/client_get_streaming_test.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -32,10 +32,8 @@ TYPED_TEST(HTTPClientTest, GetStreamingTest) {
typename TypeParam::string_type dummy_body;
body_handler handler_instance(body_string);
{
using client = TypeParam;
typename client::options options;
options.remove_chunk_markers(true);
client client_(options);
using client = TypeParam;
client client_;
ASSERT_NO_THROW(response = client_.get(request, handler_instance));
auto range = headers(response)["Content-Type"];
ASSERT_TRUE(!boost::empty(range));
Expand Down
12 changes: 3 additions & 9 deletionslibs/network/test/http/client_get_test.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,9 +15,7 @@ TYPED_TEST_CASE(HTTPClientTest, ClientTypes);
TYPED_TEST(HTTPClientTest, GetTest) {
using client = TypeParam;
typename client::request request("http://cpp-netlib.org/");
typename client::options options;
options.remove_chunk_markers(true);
client client_(options);
client client_;
typename client::response response;
ASSERT_NO_THROW(response = client_.get(request));
try {
Expand All@@ -36,9 +34,7 @@ TYPED_TEST(HTTPClientTest, GetTest) {
TYPED_TEST(HTTPClientTest, GetHTTPSTest) {
using client = TypeParam;
typename client::request request("https://www.github.com/");
typename client::options options;
options.remove_chunk_markers(true);
client client_(options);
client client_;
typename client::response response = client_.get(request);
EXPECT_TRUE(response.status() == 200 ||
(response.status() >= 300 && response.status() < 400));
Expand DownExpand Up@@ -81,9 +77,7 @@ TYPED_TEST(HTTPClientTest, TemporaryClientObjectTest) {
using client = TypeParam;
typename client::request request("http://cpp-netlib.org/");
typename client::response response;
typename client::options options;
options.remove_chunk_markers(true);
ASSERT_NO_THROW(response = client(options).get(request));
ASSERT_NO_THROW(response = client().get(request));
auto range = headers(response);
ASSERT_TRUE(!boost::empty(range));
try {
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp