TS-2553 Fix a segfault in the Metalink plugin reported by Faysal Banna and preserve the Content-Length header