Skip to content

Commit bb00275

Browse files
authored
feat(headers): Omit payload length for HTTP/2 OPTIONS (#785)
1 parent 7b5808d commit bb00275

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/proto/headers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fn from_digits(bytes: &[u8]) -> Option<u64> {
8686
pub(super) fn method_has_defined_payload_semantics(method: &Method) -> bool {
8787
!matches!(
8888
*method,
89-
Method::GET | Method::HEAD | Method::DELETE | Method::CONNECT
89+
Method::GET | Method::HEAD | Method::DELETE | Method::CONNECT | Method::OPTIONS
9090
)
9191
}
9292

0 commit comments

Comments
 (0)