Update object url if response contains a location header