Skip to content

Commit

Permalink
fixed for Sinatra 1.0 api.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanying committed Apr 8, 2010
1 parent 6bc2312 commit 7d79b05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
config.ru
config.yml
tmp
.DS_Store
6 changes: 3 additions & 3 deletions webserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
require "json"
require 'digest/sha1'

mime :json, "application/json"
mime :rss, "application/rss+xml"
mime :raw, "application/octet-stream"
mime_type :json, "application/json"
mime_type :rss, "application/rss+xml"
mime_type :raw, "application/octet-stream"

IPHONE_USER_AGENT = /iPhone.*Apple.*Mobile/

Expand Down

0 comments on commit 7d79b05

Please sign in to comment.