No commit activity in last 3 years
No release in over 3 years
TODO
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

rack-options-request¶ ↑


Have you seen exceptions like this before?

“ActionController::NotImplemented: Only requests are allowed.”

This is usually the result of a Microsoft product sending an OPTIONS request to your app with a user_agent of “Microsoft Office Protocol Discovery”. This middleware will stop those requests in their tracks, and keep them from hitting your rails stack.

TO USE with Rails 2.3:

gem install CodeOfficer-rack-options-request

then in your environment.rb:

config.gem "CodeOfficer-rack-options-request", :lib => 'rack/options/request'
config.middleware.use 'Rack::Options::Request'

For more information, please read: rails.learnhub.com/lesson/2318-dealing-with-microsoft-office-protocol-discovery-in-rails

Until I learn TDD, you can test your local app with …

curl -X GET http://localhost:3000/

Should return your normal content.

While …

curl -X OPTIONS http://localhost:3000/

Should return a 200 status and “Microsoft Office Protocol Discovery”.

Copyright © 2009 Russell Jones. See LICENSE for details.