fixing bad http request