aboutsummaryrefslogtreecommitdiff
path: root/src/framework
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-05-27 09:13:06 -0700
committerZeyla Hellyer <[email protected]>2017-05-27 09:13:06 -0700
commit0102706321a00cfb39b356bdf2cf8d523b93a8ec (patch)
tree6d2ba524b5ddeabf590b1c10d03900dbd1d8ef21 /src/framework
parentFix GuildChannel::create_permission anchor link (diff)
downloadserenity-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