# HG changeset patch # User Sebastien Jodogne # Date 1714724815 -7200 # Node ID 1b31ab38ea94a0cea00c382133e1e7d37f120227 # Parent 4bd7abdfb9cf2a781631ef83aa71177259f9c2d6 using HttpStatus_307_TemporaryRedirect for redirections diff -r 4bd7abdfb9cf -r 1b31ab38ea94 OrthancFramework/Sources/HttpServer/HttpOutput.cpp --- a/OrthancFramework/Sources/HttpServer/HttpOutput.cpp Fri Apr 26 18:05:00 2024 +0200 +++ b/OrthancFramework/Sources/HttpServer/HttpOutput.cpp Fri May 03 10:26:55 2024 +0200 @@ -428,8 +428,13 @@ void HttpOutput::Redirect(const std::string& path) { + /** + * "HttpStatus_301_MovedPermanently" was used in Orthanc <= + * 1.12.3. This caused issues on changes in the configuration of + * Orthanc. + **/ stateMachine_.ClearHeaders(); - stateMachine_.SetHttpStatus(HttpStatus_301_MovedPermanently); + stateMachine_.SetHttpStatus(HttpStatus_307_TemporaryRedirect); stateMachine_.AddHeader("Location", path); stateMachine_.SendBody(NULL, 0); }