mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Fix wrong behavior when reading text
Also add another 'file read error' status. Closes #19254. PR #19262.
This commit is contained in:
parent
08a771468d
commit
80791e328d
7 changed files with 45 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue