Replies: 1 comment 6 replies
-
I'm not sure but you should be able to reproduce this without using axum, just using streams directly. |
Beta Was this translation helpful? Give feedback.
6 replies
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.
-
Hi, I'm implementing two handlers. One is for user to upload files, and the other is to download them.
The upload handler seems fine; however, its output, when decompressed using
zlib-flate
, giveszlib-flate: WARNING: zlib code -5, msg = input stream is complete but output may still be valid
. The output is in fact okay to me.However, the download handler cannot decompress the file with error
connection error: error from user's HttpBody stream: deflate decompression error
.When the compression/decompression streams are commented out, the results are okay. Still, since I might be storing large files, I'd love to have compression supported.
These are the code snippets for the handlers:
(See here if you need the full code for diagnostic.)
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions