Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(422)

Unified Diff: services/http_server/http_request_parser.cc

Issue 1348493002: Add fnl build target (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/BUILD.gn ('k') | services/http_server/http_server_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/http_server/http_request_parser.cc
diff --git a/services/http_server/http_request_parser.cc b/services/http_server/http_request_parser.cc
index b5beb0a9fbfdd56df9222d213d58b91a294a99ee..5aff0d01823370dfd69253c4bb7393e596a4a634 100644
--- a/services/http_server/http_request_parser.cc
+++ b/services/http_server/http_request_parser.cc
@@ -139,10 +139,10 @@ HttpRequestParser::ParseResult HttpRequestParser::ParseHeaders() {
// If we ever want to support really large content length (currently pipe max
// 256 MB), then we'll have to stream data from parser to handler.
- MojoCreateDataPipeOptions options = {sizeof(MojoCreateDataPipeOptions),
- MOJO_CREATE_DATA_PIPE_OPTIONS_FLAG_NONE,
- 1,
- declared_content_length};
+ MojoCreateDataPipeOptions options = {
+ sizeof(MojoCreateDataPipeOptions),
+ MOJO_CREATE_DATA_PIPE_OPTIONS_FLAG_NONE, 1,
+ static_cast<uint32_t>(declared_content_length)};
MojoResult result = CreateDataPipe(
&options, &producer_handle_, &http_request_->body);
if (result != MOJO_RESULT_OK) {
« no previous file with comments | « services/BUILD.gn ('k') | services/http_server/http_server_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698