aboutsummaryrefslogtreecommitdiff
path: root/examples/05_command_framework/src
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-06-14 21:06:42 -0700
committerZeyla Hellyer <[email protected]>2017-06-14 21:06:42 -0700
commita3e843b0a3d379a96c983555274a4acf2268a78e (patch)
tree2a6534ff26cbdc3bb23de4752099f6bec40b89a4 /examples/05_command_framework/src
parentRun clippy on examples (diff)
downloadserenity-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