mirror of
https://github.com/status-im/nim-codex.git
synced 2025-01-25 02:01:09 +00:00
Eric Mastro
26ead9726d
[rest api]: improve exception handling for
/connect
and add content-type
header for /download
This PR achieves the following: 1. Improves the exception handling when dialling a peer fails or an unknown error occurs. 2. Add a `Content-Type` header to the `/download` endpoint of `application/octet-stream`, which is [defined by MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#types) as meant to be used for "generic binary data (or binary data whose true type is unknown)". Co-authored-by: Michael Bradley <michaelsbradleyjr@gmail.com>
Description
Decentralized Durability Engine
Languages
Nim
98.6%
Makefile
0.8%
Shell
0.5%