Skip to content

Commit 1d9bc05

Browse files
committed
CCM-6437: test
1 parent 053ddb3 commit 1d9bc05

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

proxies/shared/resources/jsc/SetResponseDefaults.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,8 @@ headerNames.forEach(function (header) {
3232
});
3333

3434
// format errors and response objects
35-
try {
36-
const errorContent = context.getVariable("error.content")
37-
const responseContent = context.getVariable("response.content")
35+
const errorContent = context.getVariable("error.content")
36+
const responseContent = context.getVariable("response.content")
3837

39-
if (errorContent) context.setVariable("error.content", JSON.stringify(JSON.parse(errorContent)))
40-
if (responseContent) context.setVariable("response.content", JSON.stringify(JSON.parse(responseContent)))
41-
42-
} catch (e) {
43-
//
44-
}
38+
if (errorContent) context.setVariable("error.content", JSON.stringify(JSON.parse(errorContent)))
39+
if (responseContent) context.setVariable("response.content", JSON.stringify(JSON.parse(responseContent)))

0 commit comments

Comments
 (0)