Update lib/http.pm's redirect()

Shane approved. Also p5.18 friendly.