fix request method code