Skip to content

Commit ba82853

Browse files
committed
Drop now-unnecessary REST API backward compat
1 parent 50e9236 commit ba82853

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/api/rest-api.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,7 @@ export function exposeRestAPI(
7171
const proxyPort = parseInt(req.params.proxyPort, 10);
7272
if (isNaN(proxyPort)) throw new StatusError(400, `Could not parse required proxy port: ${req.params.proxyPort}`);
7373

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-
74+
const interceptorOptions = req.body;
8175
const result = await apiModel.activateInterceptor(interceptorId, proxyPort, interceptorOptions);
8276
res.send({ result });
8377
}));

0 commit comments

Comments
 (0)