Skip to content

Commit

Permalink
Fix bad assert
Browse files Browse the repository at this point in the history
  • Loading branch information
swlynch99 committed Oct 1, 2022
1 parent 045e233 commit aac6577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol/http/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl ResponseBuilder {
}

pub fn header(&mut self, key: &str, value: &[u8]) -> &mut Self {
assert!(self.headers.is_empty());
assert!(!self.headers.is_empty());

self.headers.extend_from_slice(key.as_bytes());
self.headers.extend_from_slice(b": ");
Expand Down

0 comments on commit aac6577

Please sign in to comment.