Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
bd613c86
Commit
bd613c86
authored
Apr 27, 2017
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix HTTP expectedBodySize type.
parent
2825abe2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
http.c++
c++/src/kj/compat/http.c++
+1
-1
http.h
c++/src/kj/compat/http.h
+1
-1
No files found.
c++/src/kj/compat/http.c++
View file @
bd613c86
...
...
@@ -1717,7 +1717,7 @@ private:
kj
::
Own
<
kj
::
AsyncOutputStream
>
send
(
uint
statusCode
,
kj
::
StringPtr
statusText
,
const
HttpHeaders
&
headers
,
kj
::
Maybe
<
size
_t
>
expectedBodySize
)
override
{
kj
::
Maybe
<
uint64
_t
>
expectedBodySize
)
override
{
auto
method
=
KJ_REQUIRE_NONNULL
(
currentMethod
,
"already called startResponse()"
);
currentMethod
=
nullptr
;
...
...
c++/src/kj/compat/http.h
View file @
bd613c86
...
...
@@ -458,7 +458,7 @@ public:
public
:
virtual
kj
::
Own
<
kj
::
AsyncOutputStream
>
send
(
uint
statusCode
,
kj
::
StringPtr
statusText
,
const
HttpHeaders
&
headers
,
kj
::
Maybe
<
size
_t
>
expectedBodySize
=
nullptr
)
=
0
;
kj
::
Maybe
<
uint64
_t
>
expectedBodySize
=
nullptr
)
=
0
;
// Begin the response.
//
// `statusText` and `headers` need only remain valid until send() returns (they can be
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment