fixed bug re: methods other than GET/HEAD