-
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sdogruyol
committed
Oct 26, 2015
1 parent
8a0f9df
commit efe7519
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,12 @@ class Kemal::Handler < HTTP::Handler | |
params[key] ||= value | ||
end | ||
|
||
if body = request.body | ||
HTTP::Params.parse(request.body.not_nil!) do |key, value| | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
params[key] ||= value | ||
end | ||
end | ||
This comment has been minimized.
Sorry, something went wrong.
waterlink
Contributor
|
||
|
||
kemal_request = Request.new(request, params) | ||
context = Context.new(kemal_request) | ||
begin | ||
|
2 comments
on commit efe7519
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you like to open a PR for these @waterlink
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I will!
##
Best Regards,
Alexey Fedorov,
Sr Ruby, Clojure, Crystal, Golang Developer,
Microservices Backend Engineer,
+49 15757 486 476
…On Thu, Nov 5, 2015 at 7:38 AM, Serdar Dogruyol ***@***.*** wrote:
Would you like to open a PR for these @waterlink
https://github.com/waterlink
—
Reply to this email directly or view it on GitHub
efe7519#commitcomment-14202942
.
Wouldn't it be better to use
body
local variable here, since it is already defined and compiler knows it is not nil?