Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/8144_icat_external_downl…
Browse files Browse the repository at this point in the history
…oad'
  • Loading branch information
martyngigg committed Oct 17, 2013
2 parents 28aee85 + 09cfb3d commit ce243e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Code/Mantid/Framework/ICat/src/CatalogDownloadDataFiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ namespace Mantid
//use HTTP Get method to download the data file from the server to local disk
try
{
URI uri(URL);
// Temporary fix (can be removed when ICAT3 disabled) as URL returned is HTTPS, which will cause the
// HTTPResponse below to fail the download. We can replace HTTPS with HTTP and download as expected.
std::string newURL = URL; // Need to convert to none const to perform replacement.
boost::replace_first(newURL, "https", "http");
URI uri(newURL);
std::string path(uri.getPathAndQuery());
if (path.empty())
{
Expand Down

0 comments on commit ce243e7

Please sign in to comment.