diff options
| author | Zeyla Hellyer <[email protected]> | 2017-06-14 21:06:42 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-06-14 21:06:42 -0700 |
| commit | a3e843b0a3d379a96c983555274a4acf2268a78e (patch) | |
| tree | 2a6534ff26cbdc3bb23de4752099f6bec40b89a4 /examples/05_command_framework/src | |
| parent | Run clippy on examples (diff) | |
| download | serenity-a3e843b0a3d379a96c983555274a4acf2268a78e.tar.xz serenity-a3e843b0a3d379a96c983555274a4acf2268a78e.zip | |
Call send_files from http::send_file
When made, the `http::send_files` code was duplicated from
`http::send_file`. Instead call `http::send_files`, which provides a
fix for when an, e.g. 4xx status code, is received, and the library
would continue to deserialize the response as usual.
This fixes errors like:
```
Err(Json(ErrorImpl { code: Message("missing field `id`"), line: 1, column: 54 }))
```
Instead returning:
```
Err(Http(InvalidRequest(PayloadTooLarge)))
```
Diffstat (limited to 'examples/05_command_framework/src')
0 files changed, 0 insertions, 0 deletions