Skip to content

Commit

Permalink
Merge pull request sinatra#57 from benilovj/patch-1
Browse files Browse the repository at this point in the history
Fixed typo + error in sinatra-respond-with.html
  • Loading branch information
cypher committed Mar 28, 2012
2 parents c9bb5fa + 614ad0e commit 349ca72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/sinatra-respond-with.html
Expand Up @@ -14,7 +14,7 @@ <h1>Sinatra::RespondWith</h1>
case type
when 'text/html'
halt haml(:index, :locals =&gt; data)
when 'text/json'
when 'application/json'
halt data.to_json
when 'application/atom+xml'
halt nokogiri(:'index.atom', :locals =&gt; data)
Expand Down Expand Up @@ -63,7 +63,7 @@ <h1>Sinatra::RespondWith</h1>
<h2>Security</h2>
<p>
Since methods are triggered based on client input, this can lead to
security issues (but not as seviere as those might apear in the first
security issues (but not as severe as those might appear in the first
place: keep in mind that only known file extensions are used). You
therefore should limit the possible formats you serve.
</p>
Expand Down

0 comments on commit 349ca72

Please sign in to comment.