comparison Core/HttpServer/HttpOutput.cpp @ 3432:297ad330900c

merge
author Alain Mazy <alain@mazy.be>
date Mon, 17 Jun 2019 23:37:07 +0200
parents 2f6dcb9c8cc1
children f6fe095f7130
comparison
equal deleted inserted replaced
3431:e0841192d7d0 3432:297ad330900c
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 }