Skip to content

Commit

Permalink
[docs] method_override explained
Browse files Browse the repository at this point in the history
- update rack docs link
  • Loading branch information
olleolleolle committed Feb 24, 2020
1 parent 6a1a930 commit 13e2923
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/method_override.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Method override

Writes the original HTTP method to "X-Http-Method-Override" header and changes the request method to POST.
Changes the request method to POST and writes the original HTTP method to the "X-Http-Method-Override" header.

This can be used to work around technical issues with making non-POST requests, e.g. faulty HTTP client or server router.
This can be used to work around technical issues with making non-POST requests, e.g. a faulty HTTP client or server router.

This header is recognized in Rack apps by default, courtesy of the [Rack::MethodOverride](http://rack.rubyforge.org/doc/classes/Rack/MethodOverride.html) module.
This header is recognized in Rack apps by default, courtesy of the [Rack::MethodOverride](https://www.rubydoc.info/github/rack/rack/Rack/MethodOverride) module.

```rb
connection = Faraday.new 'http://example.com/api' do |conn|
Expand Down

0 comments on commit 13e2923

Please sign in to comment.