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

This commit is contained in:
softsimon committed 2021-07-19 02:34:01 +03:00
1 parent ecee484359
commit 02551f6ef3
3 files changed
+4 -3

No files matched your search

+1
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);