Changing block header link to icon. Setting api response header to match electrs.

This commit is contained in:
softsimon
2021-07-19 02:34:01 +03:00
parent 2e54f4ca94
commit cb90b09a0e
3 changed files with 4 additions and 3 deletions

View File

@@ -509,6 +509,7 @@ class Routes {
public async getBlockHeader(req: Request, res: Response) {
try {
const blockHeader = await bitcoinApi.$getBlockHeader(req.params.hash);
res.setHeader('content-type', 'text/plain');
res.send(blockHeader);
} catch (e) {
res.status(500).send(e.message || e);