| 322 | } |
| 323 | |
| 324 | CrossPointWebServer::WsUploadStatus CrossPointWebServer::getWsUploadStatus() const { |
| 325 | WsUploadStatus status; |
| 326 | status.inProgress = wsUploadInProgress; |
| 327 | status.received = wsUploadReceived; |
| 328 | status.total = wsUploadSize; |
| 329 | status.filename = wsUploadFileName.c_str(); |
| 330 | status.lastCompleteName = wsLastCompleteName.c_str(); |
| 331 | status.lastCompleteSize = wsLastCompleteSize; |
| 332 | status.lastCompleteAt = wsLastCompleteAt; |
| 333 | return status; |
| 334 | } |
| 335 | |
| 336 | static void sendHtmlContent(WebServer* server, const char* data, size_t len) { |
| 337 | server->sendHeader("Content-Encoding", "gzip"); |