comparison Core/HttpServer/HttpOutput.cpp @ 3425:2f6dcb9c8cc1

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 14 Jun 2019 15:21:19 +0200
parents 541c787e2230
children f6fe095f7130
comparison
equal deleted inserted replaced
3424:07c3b6044e9d 3425:2f6dcb9c8cc1
304 void HttpOutput::SendStatus(HttpStatus status, 304 void HttpOutput::SendStatus(HttpStatus status,
305 const char* message, 305 const char* message,
306 size_t messageSize) 306 size_t messageSize)
307 { 307 {
308 if (status == HttpStatus_301_MovedPermanently || 308 if (status == HttpStatus_301_MovedPermanently ||
309 status == HttpStatus_401_Unauthorized || 309 //status == HttpStatus_401_Unauthorized ||
310 status == HttpStatus_405_MethodNotAllowed) 310 status == HttpStatus_405_MethodNotAllowed)
311 { 311 {
312 throw OrthancException(ErrorCode_ParameterOutOfRange, 312 throw OrthancException(ErrorCode_ParameterOutOfRange,
313 "Please use the dedicated methods to this HTTP status code in HttpOutput"); 313 "Please use the dedicated methods to this HTTP status code in HttpOutput");
314 } 314 }