fix setHttpMethod()