Skip to content

Commit d26b65e

Browse files
authored
Merge pull request #7351 from kenjis/fix-docs-methodspoofing.rst
docs: update methodspoofing.rst
2 parents f32eaa5 + 266cef1 commit d26b65e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

user_guide_src/source/incoming/methodspoofing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
====================
1+
####################
22
HTTP Method Spoofing
3-
====================
3+
####################
44

55
When working with HTML forms you can only use GET or POST HTTP verbs. In most cases, this is just fine. However, to
66
support REST-ful routing you need to support other, more correct, verbs, like DELETE or PUT. Since the browsers
@@ -11,7 +11,7 @@ To spoof the method, a hidden input is added to the form with the name of ``_met
1111
that you want the request to be::
1212

1313
<form action="" method="post">
14-
<input type="hidden" name="_method" value="PUT" />
14+
<input type="hidden" name="_method" value="PUT">
1515
</form>
1616

1717
This form is converted into a PUT request and is a true PUT request as far as the routing and the IncomingRequest

0 commit comments

Comments
 (0)