Fixed samples url

This commit is contained in:
Sdogruyol 2015-10-29 11:20:32 +02:00
parent 924905f146
commit 2cbe54b624
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ crystal build --release src/kemal_sample.cr
``` ```
Go to *http://localhost:3000* Go to *http://localhost:3000*
Check [samples](https://github.com/sdogruyol/kemal/tree/master/samples) for more. Check [samples](https://github.com/kemalcr/kemal/tree/master/samples) for more.
# Installation # Installation

View file

@ -11,7 +11,7 @@ class Kemal::ParamParser
end end
def parse_request def parse_request
{% for part in %w{query body} %} {% for part in %w(query body) %}
if {{part.id}} = @request.{{part.id}} if {{part.id}} = @request.{{part.id}}
HTTP::Params.parse({{part.id}}) do |key, value| HTTP::Params.parse({{part.id}}) do |key, value|
@params[key] ||= value @params[key] ||= value