We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RequestHandlerFunction
1 parent 99c2321 commit 4600fffCopy full SHA for 4600fff
src/HttpHelpers/handlers.jl
@@ -21,14 +21,14 @@ end
21
22
function state_handler(base_handler, state)
23
return RequestHandlerFunction(
24
- function(request::HTTP.Request, args...)
25
- response = handle(base_handler, request, state, args...)
26
- if response.status == 200
+ function(request::HTTP.Request, args...)
+ response = handle(base_handler, request, state, args...)
+ if response.status == 200
27
HTTP.defaultheader!(response, "Content-Type" => HTTP.sniff(response.body))
28
HTTP.defaultheader!(response, "Content-Length" => string(sizeof(response.body)))
29
- end
30
- return response
31
+ end
+ return response
32
)
33
end
34
0 commit comments