mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
tests for boundary conditions on redirect_count in fetch
This commit is contained in:
parent
6663f28f0d
commit
5426df32de
2 changed files with 82 additions and 9 deletions
|
@ -298,7 +298,7 @@ fn http_fetch(request: Rc<Request>,
|
|||
};
|
||||
|
||||
// Step 7
|
||||
if request.redirect_count.get() == 20 {
|
||||
if request.redirect_count.get() >= 20 {
|
||||
return Response::network_error();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue