controllers: HTTPVerbController: Update docstring

This commit updates the docstring of the `HTTPVerbController` class to
reflect the change in the way HEAD requests are handled by Milla.
master
Dustin 2016-07-10 20:38:02 -05:00
parent 807a487639
commit f3a98c2697
1 changed files with 0 additions and 7 deletions

View File

@ -104,15 +104,8 @@ class HTTPVerbController(Controller):
def GET(self, request):
return 'Hello, world!'
HEAD = GET
def POST(self, request):
return 'Thanks!'
This example also allows ``HEAD`` requests, by processing them as
``GET`` requests. *Milla* handles this correctly, as it does not
send a response body for ``HEAD`` requests, even if the controller
callable returns one.
'''
def __call__(self, request, *args, **kwargs):