= http: fix relative URI resolution, fixes #740