Skip to content

Commit

Permalink
Priority headers should be set by the application
Browse files Browse the repository at this point in the history
  • Loading branch information
valenting committed Mar 8, 2024
1 parent 1df959c commit 5bbd029
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions neqo-http3/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -835,9 +835,6 @@ impl Http3Connection {
final_headers.push(Header::new(":protocol", conn_type.string()));
}

if let Some(priority_header) = request.priority.header() {
final_headers.push(priority_header);
}
final_headers.extend_from_slice(request.headers);
Ok(final_headers)
}
Expand Down
4 changes: 2 additions & 2 deletions neqo-http3/tests/priority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fn priority_update() {
Instant::now(),
"GET",
&("https", "something.com", "/"),
&[],
&[Header::new("priority", "u=4,i")],
Priority::new(4, true),
)
.unwrap();
Expand Down Expand Up @@ -129,7 +129,7 @@ fn priority_update_dont_send_for_cancelled_stream() {
Instant::now(),
"GET",
&("https", "something.com", "/"),
&[],
&[Header::new("priority", "u=5")],
Priority::new(5, false),
)
.unwrap();
Expand Down

0 comments on commit 5bbd029

Please sign in to comment.