diff options
| author | Tom Christie | 2013-03-12 20:49:20 +0000 |
|---|---|---|
| committer | Tom Christie | 2013-03-12 20:49:20 +0000 |
| commit | 377dc2cda2c3a7aa02f5d761631f73c58745ed9d (patch) | |
| tree | a806ac1140107d3f139e7da9cec786d632f88a7d /docs | |
| parent | 716d86863f022e7dd4b9b71ecde1d908f30bdf60 (diff) | |
| download | django-rest-framework-377dc2cda2c3a7aa02f5d761631f73c58745ed9d.tar.bz2 | |
Only honor X-HTTP-Method-Override for POST requests.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/browser-enhancements.md | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/topics/browser-enhancements.md b/docs/topics/browser-enhancements.md index 8b191423..ce07fe95 100644 --- a/docs/topics/browser-enhancements.md +++ b/docs/topics/browser-enhancements.md @@ -21,11 +21,9 @@ For example, given the following form: ## HTTP header based method overriding -REST framework also supports method overriding via the `X-HTTP-Method-Override` -header. This is useful if you are working with non-form content such as -JSON and are working with an older web server and/or hosting provider -(e.g. [Amazon Web Services ELB][aws_elb]) that doesn't recognise particular -HTTP methods such as `PATCH`. +REST framework also supports method overriding via the semi-standard `X-HTTP-Method-Override` header. This can be useful if you are working with non-form content such as JSON and are working with an older web server and/or hosting provider that doesn't recognise particular HTTP methods such as `PATCH`. For example [Amazon Web Services ELB][aws_elb]. + +To use it, make a `POST` request, setting the `X-HTTP-Method-Override` header. For example, making a `PATCH` request via `POST` in jQuery: |
