Fixed url changing function using original requests.