Upcase method names

This commit is contained in:
Serdar Dogruyol 2016-10-26 18:00:56 +03:00
parent e232dde74a
commit 11157d2484

View file

@ -16,7 +16,7 @@ end
{% for method in %w(get post put head delete patch) %}
def {{method.id}}(path, headers : HTTP::Headers? = nil, body : String? = nil)
request = HTTP::Request.new("{{method.id}}", path, headers, body )
request = HTTP::Request.new("{{method.id}}".upcase, path, headers, body )
Global.response = process_request request
end
{% end %}