Skip to content
Snippets Groups Projects
Commit af55c336 authored by Yuci Gou's avatar Yuci Gou
Browse files

#403 Esearch header setting error; update to work on XSweet branch

parent 91bdad6e
No related branches found
No related tags found
2 merge requests!90Dev,!89Shared data model
...@@ -27,8 +27,9 @@ module.exports = app => { ...@@ -27,8 +27,9 @@ module.exports = app => {
superagent.get(url).end((err, response) => { superagent.get(url).end((err, response) => {
if (err) { if (err) {
res.send(JSON.stringify({ error: err })) res.send(JSON.stringify({ error: err }))
} else {
res.send(JSON.stringify(response.body))
} }
res.send(JSON.stringify(response.body))
}) })
}) })
app.get('/eutils/efetch', (req, res) => { app.get('/eutils/efetch', (req, res) => {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment