aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_static.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-03-27 11:16:24 +0100
committerLoïc Hoguin <[email protected]>2014-03-27 11:30:44 +0100
commitc9b9644aa3020643051da73931542367d649f593 (patch)
tree5e8d739849e1b55306a7c7e2eec2238ce0ebb4eb /src/cowboy_static.erl
parent17af50812c47f5dec7e02e443c551b9697715729 (diff)
downloadcowboy-c9b9644aa3020643051da73931542367d649f593.tar.gz
cowboy-c9b9644aa3020643051da73931542367d649f593.tar.bz2
cowboy-c9b9644aa3020643051da73931542367d649f593.zip
Add +warn_missing_spec and fix specs
Diffstat (limited to 'src/cowboy_static.erl')
-rw-r--r--src/cowboy_static.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cowboy_static.erl b/src/cowboy_static.erl
index e979571..d10ee87 100644
--- a/src/cowboy_static.erl
+++ b/src/cowboy_static.erl
@@ -39,6 +39,7 @@
-type state() :: {binary(), {ok, #file_info{}} | {error, atom()}, extra()}.
+-spec init(_, _, _) -> {upgrade, protocol, cowboy_rest}.
init(_, _, _) ->
{upgrade, protocol, cowboy_rest}.