mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-02 13:33:10 +00:00
/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
Languages
Nim
94.6%
Python
3%
Shell
0.7%
Nix
0.6%
Makefile
0.6%
Other
0.4%