Browse files

Fixed typo + error in sinatra-respond-with.html

  • Loading branch information...
1 parent c9bb5fa commit 954a3a078c4776a4198d5942344857844843bc49 @benilovj benilovj committed Mar 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 _includes/sinatra-respond-with.html
4 _includes/sinatra-respond-with.html
@@ -14,7 +14,7 @@
case type
when 'text/html'
halt haml(:index, :locals => data)
- when 'text/json'
+ when 'application/json'
halt data.to_json
when 'application/atom+xml'
halt nokogiri(:'index.atom', :locals => data)
@@ -63,7 +63,7 @@
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 apear in the first
place: keep in mind that only known file extensions are used). You
therefore should limit the possible formats you serve.

0 comments on commit 954a3a0

Please sign in to comment.