We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50e9236 commit ba82853Copy full SHA for ba82853
src/api/rest-api.ts
@@ -71,13 +71,7 @@ export function exposeRestAPI(
71
const proxyPort = parseInt(req.params.proxyPort, 10);
72
if (isNaN(proxyPort)) throw new StatusError(400, `Could not parse required proxy port: ${req.params.proxyPort}`);
73
74
- let interceptorOptions = req.body;
75
-
76
- if (_.isEmpty(interceptorOptions) && !_.isEmpty(req.query)) {
77
- // TEMPORARY (drop by August 2023) fix for UI bug that briefly passed options wrong
78
- interceptorOptions = req.query;
79
- }
80
+ const interceptorOptions = req.body;
81
const result = await apiModel.activateInterceptor(interceptorId, proxyPort, interceptorOptions);
82
res.send({ result });
83
}));
0 commit comments