Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
neomatrixcode committed Jul 23, 2018
1 parent 37482da commit 97b6382
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Merly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,16 @@ function handler(request::HTTP.Messages.Request)

HTTP.setheader(response,"Content-Type" => "text/plain" )

#try
try
response.status= 200
response.body = getindex(routes, searchroute)(q,request,response)
#=catch
catch
try
response.body = processroute_pattern(searchroute,request,response)
catch
response.body = getindex(routes, "notfound")(q,request,response)
end
end=#
end

for (key, value) in q.headers
HTTP.setheader(response,key => value )
Expand Down

0 comments on commit 97b6382

Please sign in to comment.