mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Fix wrong behavior when reading text
Also add another 'file read error' status. Closes #19254. PR #19262.
This commit is contained in:
@@ -516,6 +516,7 @@ void WebApplication::sendFile(const Path &path)
|
||||
LogMsg(message, Log::WARNING);
|
||||
throw InternalServerErrorHTTPError(readResult.error().message);
|
||||
|
||||
case Utils::IO::ReadError::Failed:
|
||||
case Utils::IO::ReadError::SizeMismatch:
|
||||
LogMsg(message, Log::WARNING);
|
||||
throw InternalServerErrorHTTPError(readResult.error().message);
|
||||
|
||||
Reference in New Issue
Block a user