1
0
Fork 0
mirror of https://github.com/edgurgel/httparrot synced 2025-04-05 16:22:32 -04:00

Use ~W sigil where possible!

[ci skip]
This commit is contained in:
Eduardo Gurgel 2014-05-06 21:01:44 +12:00
parent 5eee72d1aa
commit c9fbb3b919
8 changed files with 8 additions and 8 deletions

View file

@ -9,7 +9,7 @@ defmodule HTTParrot.CacheHandler do
end end
def allowed_methods(req, state) do def allowed_methods(req, state) do
{["GET", "HEAD", "OPTIONS"], req, state} {~W(GET HEAD OPTIONS), req, state}
end end
def last_modified(req, state) do def last_modified(req, state) do

View file

@ -8,7 +8,7 @@ defmodule HTTParrot.DenyHandler do
end end
def allowed_methods(req, state) do def allowed_methods(req, state) do
{["GET", "HEAD", "OPTIONS"], req, state} {~W(GET HEAD OPTIONS), req, state}
end end
def content_types_provided(req, state) do def content_types_provided(req, state) do

View file

@ -9,7 +9,7 @@ defmodule HTTParrot.GetHandler do
end end
def allowed_methods(req, state) do def allowed_methods(req, state) do
{["GET", "HEAD", "OPTIONS"], req, state} {~W(GET HEAD OPTIONS), req, state}
end end
def content_types_provided(req, state) do def content_types_provided(req, state) do

View file

@ -8,7 +8,7 @@ defmodule HTTParrot.RedirectHandler do
end end
def allowed_methods(req, state) do def allowed_methods(req, state) do
{["GET", "HEAD", "OPTIONS"], req, state} {~W(GET HEAD OPTIONS), req, state}
end end
def malformed_request(req, state) do def malformed_request(req, state) do

View file

@ -8,7 +8,7 @@ defmodule HTTParrot.RedirectToHandler do
end end
def allowed_methods(req, state) do def allowed_methods(req, state) do
{["GET", "HEAD", "OPTIONS"], req, state} {~W(GET HEAD OPTIONS), req, state}
end end
def malformed_request(req, state) do def malformed_request(req, state) do

View file

@ -8,7 +8,7 @@ defmodule HTTParrot.RelativeRedirectHandler do
end end
def allowed_methods(req, state) do def allowed_methods(req, state) do
{["GET", "HEAD", "OPTIONS"], req, state} {~W(GET HEAD OPTIONS), req, state}
end end
def malformed_request(req, state) do def malformed_request(req, state) do

View file

@ -8,7 +8,7 @@ defmodule HTTParrot.RobotsHandler do
end end
def allowed_methods(req, state) do def allowed_methods(req, state) do
{["GET", "HEAD", "OPTIONS"], req, state} {~W(GET HEAD OPTIONS), req, state}
end end
def content_types_provided(req, state) do def content_types_provided(req, state) do

View file

@ -8,7 +8,7 @@ defmodule HTTParrot.StatusCodeHandler do
end end
def allowed_methods(req, state) do def allowed_methods(req, state) do
{["GET", "HEAD", "OPTIONS"], req, state} {~W(GET HEAD OPTIONS), req, state}
end end
def content_types_provided(req, state) do def content_types_provided(req, state) do