- Notifications
You must be signed in to change notification settings - Fork425
Introduced new chunked transfer encoding parser to remove chunk markers#720
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
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
673b853c4d758ae9bf5f79586a81c70f774ff5c7c8192d520File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -15,9 +15,12 @@ namespace http = boost::network::http; | ||
| 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::requestrequest("http://www.boost.org:80/"); | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I know this might be out-of-scope, but could you make this point to Author There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Unfortunately cpp-netlib.org does not yield chunk encoded content. It does not matter much for this particular test, but for the streaming test we'd have all scenarios covered withwww.boost.org: it yields chunk encoded content for http/1.1 clients and non encoded content for http/1.0 clients. Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Ah, good point, thanks. | ||
| auto response_ = client_.get(request); | ||
| auto range =headers(response_)["Content-Type"]; | ||
| EXPECT_TRUE(std::begin(range) !=std::end(range)); | ||
| EXPECT_NE(0,body(response_).size()); | ||