How to config/overwrite the headers of response of resources returned via tiny-http (Rust) #8533
Unanswered
liudonghua123
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I tried to packaged webvm app, I tested ok using http-server. But a resource
/debian_mini_20240103_7393161196.ext2
returned via built-in tiny-http (Rust) is incorrect.I need to use the
Content-Range: bytes 0-1/629145600
which maybe related toContent-Type: application/octet-stream
andAccept-Ranges: bytes
.Good request/response is:
Bad response is:
Is there any tauri features which support some unknown file as binary stream and return
Content-Range: bytes 0-1/...
instead ofTransfer-Encoding: chunked
.Maybe related to #6375 (comment).
Beta Was this translation helpful? Give feedback.
All reactions