summaryrefslogtreecommitdiff
path: root/src/catlfish_web.erl
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-03-30 15:41:13 +0200
committerMagnus Ahltorp <map@kth.se>2015-03-31 00:40:58 +0200
commit22cefc84254cae1f57195da819eba69dbacb5a6e (patch)
tree63508f318361150ba35bbe17c18ab3e146dd20f1 /src/catlfish_web.erl
parent2d8d55bb9b6672ebe829b185beb05d4a399167f5 (diff)
Allow non-TLS http
Closes CATLFISH-31
Diffstat (limited to 'src/catlfish_web.erl')
-rw-r--r--src/catlfish_web.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/catlfish_web.erl b/src/catlfish_web.erl
index 5ee5743..f9fe6d6 100644
--- a/src/catlfish_web.erl
+++ b/src/catlfish_web.erl
@@ -2,14 +2,14 @@
%%% See LICENSE for licensing information.
-module(catlfish_web).
--export([start/2, loop/2]).
+-export([start/3, loop/2]).
-start(Options, Module) ->
+start(Options, Module, Name) ->
lager:debug("Starting catlfish web server: ~p", [Module]),
Loop = fun (Req) ->
?MODULE:loop(Req, Module)
end,
- mochiweb_http:start([{name, Module}, {loop, Loop} | Options]).
+ mochiweb_http:start([{name, Name}, {loop, Loop} | Options]).
add_auth(Path, {Code, Headers, Data}) ->