improved handling of GET/POST requests
removed 400 bad request error when request is correct