From dac5a53978793899f2426051dd5384425e1766d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 20 Feb 2013 19:53:43 +0100 Subject: Forgot to convert an atom 'POST' to binary --- src/bullet_handler.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bullet_handler.erl b/src/bullet_handler.erl index 85b64a1..6c42c86 100644 --- a/src/bullet_handler.erl +++ b/src/bullet_handler.erl @@ -78,7 +78,7 @@ handle(Req, State) -> handle(Req2, State, Method). handle(Req, State=#state{handler=Handler, handler_state=HandlerState}, - 'POST') -> + <<"POST">>) -> case cowboy_req:body(Req) of {ok, Data, Req2} -> case Handler:stream(Data, Req2, HandlerState) of -- cgit v1.2.3