Skip to content

Commit

Permalink
fix: explicitly cancel redirects when mode is 'error' (#20686)
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon authored and zcbenz committed Oct 23, 2019
1 parent cde2aae commit 2abea22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shell/browser/api/atom_api_url_request_ns.cc
Expand Up @@ -427,6 +427,7 @@ void URLRequestNS::OnRedirect(

switch (redirect_mode_) {
case network::mojom::RedirectMode::kError:
Cancel();
EmitError(
EventType::kRequest,
"Request cannot follow redirect with the current redirect mode");
Expand Down

0 comments on commit 2abea22

Please sign in to comment.