what is the request is of type get ?
should add if condition to check the type of the request first