-
Notifications
You must be signed in to change notification settings - Fork 48
Address TODOs #383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Address TODOs #383
Changes from 6 commits
355e6d8
875f015
5733ac0
e5ab40d
a4fbcbb
f42c4b8
b80322f
ee52c6a
85f362f
b63cc70
79b78d9
4beeba2
9275fff
f98f134
7b4bc8b
cce49e2
68dcf9b
052660c
480cd2d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1165,6 +1165,7 @@ static struct aws_h2err s_flush_pseudoheaders(struct aws_h2_decoder *decoder) { | |
| DECODER_LOG(ERROR, decoder, "Request is missing :method."); | ||
| goto malformed; | ||
| } | ||
|
|
||
| if (!aws_strutil_is_http_token(aws_byte_cursor_from_string(method_string))) { | ||
| DECODER_LOG(ERROR, decoder, "Request method is invalid."); | ||
| DECODER_LOGF( | ||
|
|
@@ -1174,7 +1175,8 @@ static struct aws_h2err s_flush_pseudoheaders(struct aws_h2_decoder *decoder) { | |
| AWS_BYTE_CURSOR_PRI(aws_byte_cursor_from_string(method_string))); | ||
| goto malformed; | ||
| } | ||
| if (aws_string_eq_c_str(method_string, "CONNECT")) { | ||
|
|
||
| if (aws_string_eq_byte_cursor(method_string, &aws_http_method_connect)) { | ||
| if (scheme_string || path_string) { | ||
| /* RFC-9113 8.5 The ":scheme" and ":path" pseudo-header fields MUST be omitted for CONNECT method */ | ||
| DECODER_LOG(ERROR, decoder, "CONNECT request has :path or :scheme that are must omitted."); | ||
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see this error used anywhere.
Remove it if you're not using it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was used here