fixed bug : getMethod() == HttpMethods.POST -> equals