Skip to content

Commit

Permalink
early nanopay
Browse files Browse the repository at this point in the history
  • Loading branch information
nano2dev committed Mar 2, 2024
1 parent 30b52dc commit 3e1818c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion streaming/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ const startServer = async () => {
app.get('/api/v1/streaming/node', async (req, res) => {
res.writeHead(200, { 'Content-Type': 'application/json' });
try {
res.write(JSON.stringify( (await axios.post('https://rpc.nano.to', req,body, { headers: { 'nano-app': 'xno-social' } })).data ));
res.write(JSON.stringify( (await axios.post('https://rpc.nano.to', req.body, { headers: { 'nano-app': 'xno-social' } })).data ));
res.end();
} catch (e) {
res.end( e.message ? e.message : e );
Expand Down

0 comments on commit 3e1818c

Please sign in to comment.