Skip to content

[fetch] Add responseUrl to emscripten_fetch_t - #24414

Merged
sbc100 merged 17 commits into
emscripten-core:mainfrom
dipidoo:user/dipidoo/fetch-redirect-url-update
May 28, 2025
Merged

sbc100 merged 17 commits into
emscripten-core:mainfrom
dipidoo:user/dipidoo/fetch-redirect-url-update

Conversation

@dipidoo

@dipidoo dipidoo commented May 27, 2025

Copy link
Copy Markdown
Contributor

during redirect, url should be updated to new redirected url

Comment thread src/Fetch.js Resolved

@sbc100 sbc100 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps its worth documenting this since it is technically a behaviour change.

Perhaps in the changelog and also maybe in ./site/source/docs/api_reference/fetch.rst

Comment thread src/Fetch.js Resolved
Comment thread test/fetch/test_fetch_redirect.c Resolved

@sbc100 sbc100 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm with comments addressed

Comment thread ChangeLog.md Resolved
Comment thread src/Fetch.js Resolved
Comment thread src/Fetch.js Resolved
@sbc100 sbc100 changed the title updates url if redirected during fetch [fetch] Update url if redirected during fetch May 27, 2025
@sbc100
sbc100 enabled auto-merge (squash) May 27, 2025 23:35
auto-merge was automatically disabled May 28, 2025 02:17

Head branch was pushed to by a user without write access

Comment thread src/Fetch.js Resolved
Comment thread src/Fetch.js Resolved
Comment thread test/fetch/test_fetch_from_thread.cpp Resolved
Comment thread src/Fetch.js Resolved
@sbc100

sbc100 commented May 28, 2025

Copy link
Copy Markdown
Collaborator

Can you update the PR title?

@dipidoo dipidoo changed the title [fetch] Update url if redirected during fetch [fetch] Add responseUrl to emscripten_fetch_t May 28, 2025
Comment thread src/Fetch.js Resolved
Comment thread src/Fetch.js Resolved
@sbc100
sbc100 enabled auto-merge (squash) May 28, 2025 22:02
@sbc100
sbc100 merged commit 05d44b1 into emscripten-core:main May 28, 2025
kripken added a commit to kripken/emscripten_ that referenced this pull request May 29, 2025
kripken added a commit that referenced this pull request May 29, 2025
Lukasdoe pushed a commit to Lukasdoe/emscripten that referenced this pull request Jun 19, 2025
Lukasdoe pushed a commit to Lukasdoe/emscripten that referenced this pull request Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants