We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6720875 commit 268cabdCopy full SHA for 268cabd
src/proxies/forwarded.rs
@@ -244,20 +244,16 @@ impl<'a> Forwarded<'a> {
244
rest = rest[1..].trim_start();
245
}
246
247
- Some(';') => {
248
- rest = &rest[1..];
249
- break;
250
- }
+ // we have reached the end of the for= section
+ Some(';') => return Ok(&rest[1..]),
251
252
- // reached the end of the for section or the input
253
- None => break,
+ // reached the end of the input
+ None => return Ok(rest),
254
255
// bail
256
_ => return Err(ParseError::new("unexpected character after for= section")),
257
258
259
-
260
- Ok(rest)
261
262
263
/// Transform a borrowed Forwarded into an owned
0 commit comments