Skip to content

Commit

Permalink
Fix parsing responses with no CRs
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed May 8, 2021
1 parent 5c385a9 commit 0e71052
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 279 deletions.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,10 @@ impl<'h, 'b> Response<'h, 'b> {
bytes.slice();
self.reason = Some("");
},
b'\n' => self.reason = Some(""),
b'\n' => {
bytes.slice();
self.reason = Some("");
}
_ => return Err(Error::Status),
}

Expand Down
Loading

0 comments on commit 0e71052

Please sign in to comment.