diff --git a/src/milla/app.py b/src/milla/app.py index 7148fd2..80e7606 100644 --- a/src/milla/app.py +++ b/src/milla/app.py @@ -1,4 +1,4 @@ -# Copyright 2011 Dustin C. Hatch +# Copyright 2011, 2012, 2014, 2015 Dustin C. Hatch # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -112,7 +112,9 @@ class Application(object): if not start_response_wrapper.called: start_response(response.status, response.headerlist) - if not environ['REQUEST_METHOD'] == 'HEAD': + if environ['REQUEST_METHOD'] == 'HEAD': + return '' + else: return response.app_iter def _call_after(self, func):