comparison Core/HttpServer/HttpOutput.cpp @ 2908:9d277f8ad698

new enumeration: MimeType
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Oct 2018 16:16:07 +0100
parents ae20fccdd867
children d924f9bb61cc
comparison
equal deleted inserted replaced
2907:0204af4ece6a 2908:9d277f8ad698
320 stateMachine_.SetHttpStatus(HttpStatus_401_Unauthorized); 320 stateMachine_.SetHttpStatus(HttpStatus_401_Unauthorized);
321 stateMachine_.AddHeader("WWW-Authenticate", "Basic realm=\"" + realm + "\""); 321 stateMachine_.AddHeader("WWW-Authenticate", "Basic realm=\"" + realm + "\"");
322 stateMachine_.SendBody(NULL, 0); 322 stateMachine_.SendBody(NULL, 0);
323 } 323 }
324 324
325
325 void HttpOutput::Answer(const void* buffer, 326 void HttpOutput::Answer(const void* buffer,
326 size_t length) 327 size_t length)
327 { 328 {
328 if (length == 0) 329 if (length == 0)
329 { 330 {