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
f7c0df12
Commit
f7c0df12
authored
Jul 27, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove :version from downstream HTTP/2.0 request
parent
ddd04e8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
src/shrpx_spdy_downstream_connection.cc
src/shrpx_spdy_downstream_connection.cc
+2
-4
No files found.
src/shrpx_spdy_downstream_connection.cc
View file @
f7c0df12
...
...
@@ -224,10 +224,10 @@ int SpdyDownstreamConnection::push_request_headers()
return
0
;
}
size_t
nheader
=
downstream_
->
get_request_headers
().
size
();
// 1
2 means :method, :scheme, :path, :version
and possible via and
// 1
0 means :method, :scheme, :path
and possible via and
// x-forwarded-for header fields. We rename host header field as
// :host.
const
char
**
nv
=
new
const
char
*
[
nheader
*
2
+
1
2
+
1
];
const
char
**
nv
=
new
const
char
*
[
nheader
*
2
+
1
0
+
1
];
size_t
hdidx
=
0
;
std
::
string
via_value
;
std
::
string
xff_value
;
...
...
@@ -274,8 +274,6 @@ int SpdyDownstreamConnection::push_request_headers()
nv
[
hdidx
++
]
=
":method"
;
nv
[
hdidx
++
]
=
downstream_
->
get_request_method
().
c_str
();
nv
[
hdidx
++
]
=
":version"
;
nv
[
hdidx
++
]
=
"HTTP/1.1"
;
bool
chunked_encoding
=
false
;
bool
content_length
=
false
;
for
(
Headers
::
const_iterator
i
=
downstream_
->
get_request_headers
().
begin
();
...
...
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