support any requests
All checks were successful
Publish Docker Images / docker (push) Successful in 1m56s
All checks were successful
Publish Docker Images / docker (push) Successful in 1m56s
This commit is contained in:
@ -27,11 +27,7 @@ export default class ProxyRoute extends Route {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
const response = await axios.get(url, {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
const response = await axios.get(url);
|
||||
const data = response.data;
|
||||
const headers = response.headers;
|
||||
|
||||
@ -69,7 +65,7 @@ export default class ProxyRoute extends Route {
|
||||
headers["access-control-allow-methods"] = "*";
|
||||
|
||||
// Return the JSON response
|
||||
res.status(response.status).set(headers).json(data);
|
||||
res.status(response.status).set(headers).send(data);
|
||||
} catch (ex) {
|
||||
res
|
||||
.status(500)
|
||||
|
Reference in New Issue
Block a user