fix bug, "method" needs to be "httpMethod"