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.
1 parent b0bf83a commit 08bb621Copy full SHA for 08bb621
src/handlers.jl
@@ -96,6 +96,7 @@ function make_handler(app::DashApp; debug::Bool = false)
96
index_string::String = index_page(app, debug = debug)
97
98
return function (req::HTTP.Request)
99
+ body::Union{Nothing, String} = nothing
100
uri = HTTP.URI(req.target)
101
102
# verify that the client accepts compression
@@ -135,9 +136,9 @@ function make_handler(app::DashApp; debug::Bool = false)
135
136
end
137
138
- if @isdefined body
139
+ if !isnothing(body)
140
return make_response(200, headers, body, with_gzip)
141
142
return HTTP.Response(404)
143
-end
144
+end
0 commit comments