Browse files

add empty jsonstack to send_method_not_allowed

  • Loading branch information...
1 parent ec72102 commit 0d01e99d8200614e5cd7b701b9ae956094406658 Robert Newson committed Jun 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/chttpd.erl
View
2 src/chttpd.erl
@@ -559,7 +559,7 @@ send_response(#httpd{mochi_req=MochiReq}=Req, Code, Headers, Body) ->
send_method_not_allowed(Req, Methods) ->
send_error(Req, 405, [{"Allow", Methods}], <<"method_not_allowed">>,
- ?l2b("Only " ++ Methods ++ " allowed")).
+ ?l2b("Only " ++ Methods ++ " allowed"), []).
send_json(Req, Value) ->
send_json(Req, 200, Value).

0 comments on commit 0d01e99

Please sign in to comment.