mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
modules/s_fetch: Clear the origin after cancel so it's not re-attempted.
This commit is contained in:
parent
604c103bbc
commit
0cbe9b0afa
1 changed files with 2 additions and 0 deletions
|
@ -782,6 +782,7 @@ catch(const http::error &e)
|
|||
};
|
||||
|
||||
server::cancel(request);
|
||||
request.origin = {};
|
||||
return false;
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
|
@ -797,6 +798,7 @@ catch(const std::exception &e)
|
|||
};
|
||||
|
||||
server::cancel(request);
|
||||
request.origin = {};
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue