From 2c5c39a35fb99cb244356e06accc296bf3351812 Mon Sep 17 00:00:00 2001 From: Mike Goslin Date: Tue, 20 Feb 2001 18:06:49 +0000 Subject: [PATCH] *** empty log message *** --- panda/src/downloader/downloader.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/panda/src/downloader/downloader.cxx b/panda/src/downloader/downloader.cxx index 98c779f042..1041716ecf 100644 --- a/panda/src/downloader/downloader.cxx +++ b/panda/src/downloader/downloader.cxx @@ -830,6 +830,13 @@ parse_header(DownloadStatus *status) { // Two consecutive (CR LF)s indicates end of HTTP header if (nl == p) { + // Make sure we didn't get a redirect + if (redirect == true) { + downloader_cat.error() + << "Downloader::parse_header() - Got a 302 redirect but no " + << "Location directive" << endl; + return EU_error_abort; + } if (downloader_cat.is_debug()) downloader_cat.debug() << "Downloader::parse_header() - Header is complete" << endl;