Skip to content

Commit

Permalink
cleaner protover
Browse files Browse the repository at this point in the history
  • Loading branch information
gquintard committed Sep 4, 2024
1 parent 79ad551 commit c5d5686
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vcl/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ impl<'a> HTTP<'a> {
pub fn set_proto(&mut self, value: &str) -> Result<()> {
self.raw.protover = match value {
"HTTP/0.9" => 9,
// FIXME: Is this a bug?
"HTTP/1.0" | "HTTP/1.1" => 10,
"HTTP/1.0" => 10,
"HTTP/1.1" => 11,
"HTTP/2.0" => 20,
_ => 0,
};
Expand Down

0 comments on commit c5d5686

Please sign in to comment.