diff options
| author | Zeyla Hellyer <[email protected]> | 2017-05-27 09:13:06 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-05-27 09:13:06 -0700 |
| commit | 0102706321a00cfb39b356bdf2cf8d523b93a8ec (patch) | |
| tree | 6d2ba524b5ddeabf590b1c10d03900dbd1d8ef21 /src/framework | |
| parent | Fix GuildChannel::create_permission anchor link (diff) | |
| download | serenity-0102706321a00cfb39b356bdf2cf8d523b93a8ec.tar.xz serenity-0102706321a00cfb39b356bdf2cf8d523b93a8ec.zip | |
Fix incorrect attempted send_file deserialization
If http::send_file received a non-success status code due to reasons
such as sending to an invalid channel Id, not having permissions, or
sending too large of a file, then it would still try to deserialize
a response as if it were valid.
To fix this, ensure that the response is successful. Document that if
the file sent is too large, then
`HttpError::InvalidRequest(PayloadTooLarge)` is returned.
Diffstat (limited to 'src/framework')
0 files changed, 0 insertions, 0 deletions