Permalink
Browse files

use modern middleware; add missing image

  • Loading branch information...
steved committed Nov 8, 2012
1 parent eec4a8d commit fdbe9347a9864815fb884227129ca4afed030167
Showing with 5 additions and 7 deletions.
  1. +1 −1 Gemfile
  2. +2 −3 Gemfile.lock
  3. +2 −3 config.ru
  4. BIN lib/zendesk_api/server/public/images/zendesk_developers_bg.png
View
@@ -6,7 +6,7 @@ gem "hashie", :git => "git://github.com/intridea/hashie.git"
gem "multipart-post", :git => "git://github.com/steved555/multipart-post.git"
group :server do
- gem "rack-secure_only"
+ gem "rack-ssl-enforcer"
gem "sinatra"
gem "sinatra-contrib"
View
@@ -54,8 +54,7 @@ GEM
rack (1.4.1)
rack-protection (1.2.0)
rack
- rack-secure_only (0.5.0)
- rack (>= 1.1.0)
+ rack-ssl-enforcer (0.2.4)
rack-test (0.6.2)
rack (>= 1.0)
rake (0.9.2.2)
@@ -106,7 +105,7 @@ DEPENDENCIES
hashie!
jruby-openssl
multipart-post!
- rack-secure_only
+ rack-ssl-enforcer
rake
redcarpet
ripl
View
@@ -1,7 +1,6 @@
-require 'rack-secure_only'
-
+require 'rack/ssl-enforcer'
require 'zendesk_api'
require 'zendesk_api/server/base'
-use Rack::SecureOnly, :if => ZendeskAPI::Server::App.production?
+use Rack::SslEnforcer if ZendeskAPI::Server::App.production?
run ZendeskAPI::Server::App
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fdbe934

Please sign in to comment.