Skip to content

Commit

Permalink
Merge pull request rack#216 from lukejahnke/mixed_parameter_type_patch
Browse files Browse the repository at this point in the history
Fixed an unhandled condition where req.GET or req.POST could be nil
  • Loading branch information
rkh committed Aug 2, 2011
2 parents f66506d + 8ff028d commit 39c5bda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rack/showexceptions.rb
Expand Up @@ -277,7 +277,7 @@ def h(obj) # :nodoc:
<h2>Request information</h2>
<h3 id="get-info">GET</h3>
<% unless req.GET.empty? %>
<% if req.GET and not req.GET.empty? %>
<table class="req">
<thead>
<tr>
Expand All @@ -299,7 +299,7 @@ def h(obj) # :nodoc:
<% end %>
<h3 id="post-info">POST</h3>
<% unless req.POST.empty? %>
<% if req.POST and not req.POST.empty? %>
<table class="req">
<thead>
<tr>
Expand Down

0 comments on commit 39c5bda

Please sign in to comment.