diff options
Diffstat (limited to 'test/handlers')
-rw-r--r-- | test/handlers/asterisk_h.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/handlers/asterisk_h.erl b/test/handlers/asterisk_h.erl index 56b8bcb..563b488 100644 --- a/test/handlers/asterisk_h.erl +++ b/test/handlers/asterisk_h.erl @@ -7,6 +7,8 @@ init(Req, Opts) -> echo(cowboy_req:header(<<"x-echo">>, Req), Req, Opts). +echo(undefined, Req, Opts) -> + {ok, cowboy_req:reply(200, Req), Opts}; echo(What, Req, Opts) -> F = binary_to_atom(What, latin1), Value = case cowboy_req:F(Req) of |