fixed request class when PUT and DELETE are called