[Net/Web] Fixed strict reduce types to 32 bit sizes, changed to memsize

This commit is contained in:
Herman Semenov committed 2024-05-11 19:43:13 -05:00
1 parent 5e6f5eaefe
commit f75d7d13a0
4 files changed
+11 -11

No files matched your search

+3 -3
View File
@@ -332,7 +332,7 @@ static bool ServeDebuggerFile(const http::ServerRequest &request) {
mimeType = "text/css";
}
request.WriteHttpResponseHeader("1.0", 200, (int)size, mimeType);
request.WriteHttpResponseHeader("1.0", 200, size, mimeType);
request.Out()->Push((char *)data, size);
delete[] data;
@@ -341,7 +341,7 @@ static bool ServeDebuggerFile(const http::ServerRequest &request) {
static void RedirectToDebugger(const http::ServerRequest &request) {
static const std::string payload = "Redirecting to debugger UI...\r\n";
request.WriteHttpResponseHeader("1.0", 301, (int)payload.size(), "text/plain", "Location: /debugger/index.html\r\n");
request.WriteHttpResponseHeader("1.0", 301, payload.size(), "text/plain", "Location: /debugger/index.html\r\n");
request.Out()->Push(payload);
}
@@ -375,7 +375,7 @@ static void HandleFallback(const http::ServerRequest &request) {
}
static const std::string payload = "404 not found\r\n";
request.WriteHttpResponseHeader("1.0", 404, (int)payload.size(), "text/plain");
request.WriteHttpResponseHeader("1.0", 404, payload.size(), "text/plain");
request.Out()->Push(payload);
}