Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
baa9b1ca
Commit
baa9b1ca
authored
Nov 04, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Remove optional reason-phrase from SPDY :status
parent
38443d21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
src/shrpx_spdy_upstream.cc
src/shrpx_spdy_upstream.cc
+4
-9
No files found.
src/shrpx_spdy_upstream.cc
View file @
baa9b1ca
...
@@ -918,9 +918,7 @@ int SpdyUpstream::send_reply(Downstream *downstream, const uint8_t *body,
...
@@ -918,9 +918,7 @@ int SpdyUpstream::send_reply(Downstream *downstream, const uint8_t *body,
const
auto
&
resp
=
downstream
->
response
();
const
auto
&
resp
=
downstream
->
response
();
auto
&
balloc
=
downstream
->
get_block_allocator
();
auto
&
balloc
=
downstream
->
get_block_allocator
();
auto
status_line
=
concat_string_ref
(
auto
status_line
=
http2
::
stringify_status
(
balloc
,
resp
.
http_status
);
balloc
,
http2
::
stringify_status
(
balloc
,
resp
.
http_status
),
StringRef
::
from_lit
(
" "
),
http2
::
get_reason_phrase
(
resp
.
http_status
));
const
auto
&
headers
=
resp
.
fs
.
headers
();
const
auto
&
headers
=
resp
.
fs
.
headers
();
...
@@ -1001,9 +999,7 @@ int SpdyUpstream::error_reply(Downstream *downstream,
...
@@ -1001,9 +999,7 @@ int SpdyUpstream::error_reply(Downstream *downstream,
lgconf
->
update_tstamp
(
std
::
chrono
::
system_clock
::
now
());
lgconf
->
update_tstamp
(
std
::
chrono
::
system_clock
::
now
());
auto
content_length
=
util
::
make_string_ref_uint
(
balloc
,
html
.
size
());
auto
content_length
=
util
::
make_string_ref_uint
(
balloc
,
html
.
size
());
auto
status_line
=
concat_string_ref
(
auto
status_line
=
http2
::
stringify_status
(
balloc
,
status_code
);
balloc
,
http2
::
stringify_status
(
balloc
,
status_code
),
StringRef
::
from_lit
(
" "
),
http2
::
get_reason_phrase
(
status_code
));
const
char
*
nv
[]
=
{
":status"
,
status_line
.
c_str
(),
const
char
*
nv
[]
=
{
":status"
,
status_line
.
c_str
(),
":version"
,
"http/1.1"
,
":version"
,
"http/1.1"
,
...
@@ -1108,9 +1104,8 @@ int SpdyUpstream::on_downstream_header_complete(Downstream *downstream) {
...
@@ -1108,9 +1104,8 @@ int SpdyUpstream::on_downstream_header_complete(Downstream *downstream) {
size_t
hdidx
=
0
;
size_t
hdidx
=
0
;
std
::
string
via_value
;
std
::
string
via_value
;
auto
status_line
=
concat_string_ref
(
auto
status_line
=
http2
::
stringify_status
(
balloc
,
resp
.
http_status
);
balloc
,
http2
::
stringify_status
(
balloc
,
resp
.
http_status
),
StringRef
::
from_lit
(
" "
),
http2
::
get_reason_phrase
(
resp
.
http_status
));
nv
[
hdidx
++
]
=
":status"
;
nv
[
hdidx
++
]
=
":status"
;
nv
[
hdidx
++
]
=
status_line
.
c_str
();
nv
[
hdidx
++
]
=
status_line
.
c_str
();
nv
[
hdidx
++
]
=
":version"
;
nv
[
hdidx
++
]
=
":version"
;
...
...
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