maybe use here something like
lmethod = method.lower()
if lmethod in ('get', 'post', 'head'):

This way we can receive http method names in upper- and in lower-case alike.
I think it'll be more convenient this way