File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,19 @@ void AtomURLLoaderFactory::StartLoading(
230
230
std::string location;
231
231
if (head.headers ->IsRedirect (&location)) {
232
232
network::ResourceRequest new_request = request;
233
- new_request.url = GURL (location);
233
+ GURL new_location = GURL (location);
234
+
235
+ new_request.url = new_location;
236
+ new_request.site_for_cookies = new_location;
237
+
238
+ net::RedirectInfo redirect_info;
239
+ redirect_info.status_code = head.headers ->response_code ();
240
+ redirect_info.new_method = request.method ;
241
+ redirect_info.new_url = new_location;
242
+ redirect_info.new_site_for_cookies = new_location;
243
+
244
+ client->OnReceiveRedirect (redirect_info, head);
245
+
234
246
// When the redirection comes from an intercepted scheme (which has
235
247
// |proxy_factory| passed), we askes the proxy factory to create a loader
236
248
// for new URL, otherwise we call |StartLoadingHttp|, which creates
You can’t perform that action at this time.
0 commit comments