mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-24 04:41:26 +00:00
stringify the error object in header
This commit is contained in:
parent
98fc3fa2ee
commit
1fd69b3e87
@ -44,7 +44,7 @@ const getErrorResponse = (error, fullUrl) => {
|
||||
header: {
|
||||
'Content-Type': 'text/html; charset=utf-8',
|
||||
'Proxy-Error': true,
|
||||
'Proxy-Error-Message': error || 'null'
|
||||
'Proxy-Error-Message': error ? JSON.stringify(error) : 'null'
|
||||
},
|
||||
body: requestErrorHandler.getErrorContent(error, fullUrl)
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user