From f3a98c2697a895ff6c1c370e3ad9ed2f80f1f7f6 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 10 Jul 2016 20:38:02 -0500 Subject: [PATCH] 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. --- src/milla/controllers.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/milla/controllers.py b/src/milla/controllers.py index 1a5bcd7..6ac504b 100644 --- a/src/milla/controllers.py +++ b/src/milla/controllers.py @@ -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):