-
Notifications
You must be signed in to change notification settings - Fork 878
Closed
Description
config:
var proxy=proxy({
target:config.core_system,
changeOrigin:true,
logLevel:'debug',
onProxyReq:function(proxyReq,req,res){
proxyReq.setHeader('Authorization',config.Authorization);
},
onProxyRes:function(proxyRes,req,res){
console.info(proxyRes.headers['content-type'])
}
})
app.use("/",proxy);
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.listen(config.port);
real api response context-type is application/octet-stream;charset=UTF-8
proxy api response context-type is application/json;charset=UTF-8
how can i fix this.
Metadata
Metadata
Assignees
Labels
No labels