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
809d5af4
Commit
809d5af4
authored
Jan 23, 2022
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Fix invalid error code
parent
3b549caf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/shrpx_http3_upstream.cc
src/shrpx_http3_upstream.cc
+4
-4
No files found.
src/shrpx_http3_upstream.cc
View file @
809d5af4
...
@@ -2027,7 +2027,7 @@ int Http3Upstream::http_recv_request_header(Downstream *downstream,
...
@@ -2027,7 +2027,7 @@ int Http3Upstream::http_recv_request_header(Downstream *downstream,
}
}
if
(
error_reply
(
downstream
,
431
)
!=
0
)
{
if
(
error_reply
(
downstream
,
431
)
!=
0
)
{
return
NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE
;
return
-
1
;
}
}
return
0
;
return
0
;
...
@@ -2115,7 +2115,7 @@ int Http3Upstream::http_end_request_headers(Downstream *downstream, int fin) {
...
@@ -2115,7 +2115,7 @@ int Http3Upstream::http_end_request_headers(Downstream *downstream, int fin) {
auto
method_token
=
http2
::
lookup_method_token
(
method
->
value
);
auto
method_token
=
http2
::
lookup_method_token
(
method
->
value
);
if
(
method_token
==
-
1
)
{
if
(
method_token
==
-
1
)
{
if
(
error_reply
(
downstream
,
501
)
!=
0
)
{
if
(
error_reply
(
downstream
,
501
)
!=
0
)
{
return
NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE
;
return
-
1
;
}
}
return
0
;
return
0
;
}
}
...
@@ -2163,7 +2163,7 @@ int Http3Upstream::http_end_request_headers(Downstream *downstream, int fin) {
...
@@ -2163,7 +2163,7 @@ int Http3Upstream::http_end_request_headers(Downstream *downstream, int fin) {
if
(
connect_proto
)
{
if
(
connect_proto
)
{
if
(
connect_proto
->
value
!=
"websocket"
)
{
if
(
connect_proto
->
value
!=
"websocket"
)
{
if
(
error_reply
(
downstream
,
400
)
!=
0
)
{
if
(
error_reply
(
downstream
,
400
)
!=
0
)
{
return
NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE
;
return
-
1
;
}
}
return
0
;
return
0
;
}
}
...
@@ -2188,7 +2188,7 @@ int Http3Upstream::http_end_request_headers(Downstream *downstream, int fin) {
...
@@ -2188,7 +2188,7 @@ int Http3Upstream::http_end_request_headers(Downstream *downstream, int fin) {
if
(
mruby_ctx
->
run_on_request_proc
(
downstream
)
!=
0
)
{
if
(
mruby_ctx
->
run_on_request_proc
(
downstream
)
!=
0
)
{
if
(
error_reply
(
downstream
,
500
)
!=
0
)
{
if
(
error_reply
(
downstream
,
500
)
!=
0
)
{
return
NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE
;
return
-
1
;
}
}
return
0
;
return
0
;
}
}
...
...
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