Skip to content

Commit 8d561b0

Browse files
MarkCSmithreact-native-bot
authored andcommitted
Include final (redirected to) URL in response object. Fixes #55248. (#55251)
Summary: This fixes a regression introduced by b18cd58 by including the final, redirected to URL in the response object. ## Changelog: [ANDROID][FIXED] fetch() response URL is incorrect after redirect (#55248) Pull Request resolved: #55251 Test Plan: Testing using the reproducer from issue #55248. Reviewed By: cortinico Differential Revision: D91046809 Pulled By: javache fbshipit-source-id: 314419304f18325e6273ae9ed6a828d32abd68ac
1 parent 8206c12 commit 8d561b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/network

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ public class NetworkingModule(
644644
reactApplicationContext,
645645
requestId,
646646
devToolsRequestId,
647-
url,
647+
response.request().url().toString(),
648648
response,
649649
)
650650

0 commit comments

Comments
 (0)