Permalink
Browse files

Correct type as the header key

  • Loading branch information...
jhs committed Dec 7, 2010
1 parent c3a51f8 commit 1c5795dcde2f1658c163009e5b765ef3407eaa23
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/somdune_net.erl
View
@@ -384,8 +384,8 @@ atomify(Val) ->
% The ability to crash the server with a header for testing.
poison_pill(Request, Hook) ->
- case lists:keyfind('X-Somdune-Die', 1, Request#request.headers) of
- {'X-Somdune-Die', Hook} ->
+ case lists:keyfind("X-Somdune-Die", 1, Request#request.headers) of
+ {"X-Somdune-Die", Hook} ->
log_info("Activating poison pill at ~p", [Hook]),
exit(poison_pill);
_ -> ok

0 comments on commit 1c5795d

Please sign in to comment.