mirror of
https://github.com/fastogt/fastocloud.git
synced 2025-02-14 17:51:54 +00:00
Build
This commit is contained in:
parent
a69e0efe67
commit
1156584283
2 changed files with 3 additions and 2 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit ce152395c8e6eeaf6e3a09f0529cea8b6057b00c
|
Subproject commit b6c1d249546b3920ae6d8197e330f9aaa110b344
|
|
@ -171,7 +171,8 @@ void HttpHandler::ProcessReceived(HttpClient* hclient, const char* request, size
|
||||||
|
|
||||||
const std::string fileName = url.ExtractFileName();
|
const std::string fileName = url.ExtractFileName();
|
||||||
const char* mime = common::http::MimeTypes::GetType(fileName.c_str());
|
const char* mime = common::http::MimeTypes::GetType(fileName.c_str());
|
||||||
common::ErrnoError err = hclient->SendHeaders(protocol, common::http::HS_OK, extra_headers, mime, &sb.st_size,
|
size_t cast = sb.st_size;
|
||||||
|
common::ErrnoError err = hclient->SendHeaders(protocol, common::http::HS_OK, extra_headers, mime, &cast,
|
||||||
&sb.st_mtime, IsKeepAlive, hinf);
|
&sb.st_mtime, IsKeepAlive, hinf);
|
||||||
if (err) {
|
if (err) {
|
||||||
DEBUG_MSG_ERROR(err, common::logging::LOG_LEVEL_ERR);
|
DEBUG_MSG_ERROR(err, common::logging::LOG_LEVEL_ERR);
|
||||||
|
|
Loading…
Reference in a new issue