CodeOfficer-rack-options-request 0.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +18 -1
- data/VERSION.yml +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -1,6 +1,23 @@
|
|
1
1
|
= rack-options-request
|
2
2
|
|
3
|
-
|
3
|
+
Have you seen exceptions like this before?
|
4
|
+
|
5
|
+
"ActionController::NotImplemented: Only requests are allowed."
|
6
|
+
|
7
|
+
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.
|
8
|
+
|
9
|
+
TO USE with Rails 2.3:
|
10
|
+
|
11
|
+
in your environment.rb
|
12
|
+
|
13
|
+
require 'rack/options/request'
|
14
|
+
|
15
|
+
then do a
|
16
|
+
|
17
|
+
config.middleware.use Rack::Options::Request
|
18
|
+
|
19
|
+
For more information, please read:
|
20
|
+
http://rails.learnhub.com/lesson/2318-dealing-with-microsoft-office-protocol-discovery-in-rails
|
4
21
|
|
5
22
|
Until I learn TDD, you can test your local app with ...
|
6
23
|
|
data/VERSION.yml
CHANGED