You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in migrating to Julia 1+, i find Mux always serves headers with content-length set to zero (which means my download progress widgets are broken). Is there a new setting to re-enable Mux (or HTTP.jl) to send the computed file size in the headers?
The text was updated successfully, but these errors were encountered:
after some research and testing figured it out. seems we have to manually configure these things now in mux.
using Mux, HttpCommon,JSON
function mycustomheaders(str)
headers = HttpCommon.headers();
headers["Content-Length"] = JSON.json(sizeof(str)); #note use sizeof not length!
Dict(:headers => headers,:body=> str);
end
function testfunc(req)
return "some big file to test content length here"
end
in migrating to Julia 1+, i find Mux always serves headers with content-length set to zero (which means my download progress widgets are broken). Is there a new setting to re-enable Mux (or HTTP.jl) to send the computed file size in the headers?
The text was updated successfully, but these errors were encountered: