Skip to content

Commit

Permalink
Use hdrs.METH_HEAD instead of 'head'
Browse files Browse the repository at this point in the history
  • Loading branch information
lgelo committed Mar 22, 2016
1 parent 4a5347f commit a7d5995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohttp/web_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ def text(self, text):
self.body = text.encode(self.charset)

def should_send_body(self):
return (self._req.method.lower() != 'head' and
return (self._req.method != hdrs.METH_HEAD and
self._status not in [204, 304])

@asyncio.coroutine
Expand Down

0 comments on commit a7d5995

Please sign in to comment.