这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Throvn
Copy link
Contributor

@Throvn Throvn commented Sep 6, 2025

This PR should close #722.

It added a test (fetchWithBlobBody) to verify that the blob type is set correctly.

It also set the Blob type to the content type header of the fetch response. If the content type is not defined, it falls back to an empty string (like before).

Copy link
Owner

@saghul saghul left a comment

Choose a reason for hiding this comment

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

Good work, thanks!

@saghul
Copy link
Owner

saghul commented Sep 6, 2025

I think you need to run make js again

@Throvn
Copy link
Contributor Author

Throvn commented Sep 6, 2025

Thanks!

throvn@Louiss-MBP-2 txiki.js % git branch
* fix/fetch-content-type-blob
  master
throvn@Louiss-MBP-2 txiki.js % make js
cmake --build build --target tjsc -j 8
gmake[1]: Entering directory '/Users/throvn/Documents/txiki.js/build'
[ 75%] Built target qjs
[100%] Built target tjsc
gmake[1]: Leaving directory '/Users/throvn/Documents/txiki.js/build'
throvn@Louiss-MBP-2 txiki.js % git diff
throvn@Louiss-MBP-2 txiki.js % 

make js doesn't seem to change anything for me.

@saghul
Copy link
Owner

saghul commented Sep 8, 2025

Ah, it was missing a rebase. See: #726

@saghul saghul closed this Sep 8, 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.

fetch() does not set MIME type in .blob() response

2 participants