Skip to content

Commit

Permalink
trivial fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan Oshadi Jayawardene committed Feb 5, 2012
1 parent c05dc4c commit 1944016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shim_classes.rb
Expand Up @@ -15,7 +15,7 @@ def contains_in_order(where, *what)
if idx.nil? then
return false
end
lastidx = idx
lastidx = idx + 1
end

return true
Expand All @@ -29,7 +29,7 @@ def initialize(sinatra_request)
@request_method = sinatra_request.request_method
@query_string = sinatra_request.query_string
@path_info = sinatra_request.path_info
@body = if @request_method == 'POST' and sinatra_request.content_length > '0' then
@body = if @request_method.upcase == 'POST' and sinatra_request.content_length > '0' then
sinatra_request.body.read
else
nil
Expand Down

0 comments on commit 1944016

Please sign in to comment.