Fix relative link parsing, close response body on non-HTML response