We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
RequestHandlerFunction
1 parent 4600fff commit 6804220Copy full SHA for 6804220
src/HttpHelpers/handlers.jl
@@ -24,8 +24,8 @@ function state_handler(base_handler, state)
24
function(request::HTTP.Request, args...)
25
response = handle(base_handler, request, state, args...)
26
if response.status == 200
27
- HTTP.defaultheader!(response, "Content-Type" => HTTP.sniff(response.body))
28
- HTTP.defaultheader!(response, "Content-Length" => string(sizeof(response.body)))
+ HTTP.defaultheader!(response, "Content-Type" => HTTP.sniff(response.body))
+ HTTP.defaultheader!(response, "Content-Length" => string(sizeof(response.body)))
29
end
30
return response
31
0 commit comments