Update response handling in main_fetch (#34570)

Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
shanehandley 2024-12-11 23:59:29 +11:00 committed by GitHub
parent 3f85a27097
commit bd37d5496d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 30 deletions

View file

@ -1086,16 +1086,8 @@ pub async fn http_redirect_fetch(
let recursive_flag = request.redirect_mode != RedirectMode::Manual;
// Step 22: Return the result of running main fetch given fetchParams and recursive.
let fetch_response = main_fetch(
request,
cache,
cors_flag,
recursive_flag,
target,
done_chan,
context,
)
.await;
let fetch_response =
main_fetch(request, cache, recursive_flag, target, done_chan, context).await;
// TODO: timing allow check
context