Skip to content

Commit

Permalink
Replace HTTPS with HTTP. Refs #8144.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Oct 16, 2013
1 parent a77a209 commit 09cfb3d
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 @@ -184,7 +184,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 09cfb3d

Please sign in to comment.