Skip to content

Commit

Permalink
Fix for #258 Variable replacement doesn't work when file is injected …
Browse files Browse the repository at this point in the history
…in multipart/form-data request
  • Loading branch information
william adam authored and AnWeber committed Feb 2, 2024
1 parent ae86719 commit b754ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/core/registerCorePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export function registerCorePlugins(api: models.HttpyacHooksApi) {
function initOnRequestHook(api: models.HttpyacHooksApi) {
api.hooks.onRequest.addHook('attachDefaultHeaders', request.attachDefaultHeaders);
api.hooks.onRequest.addHook('setEnvRequestOptions', request.setEnvRequestOptions);
api.hooks.onRequest.addHook('transformRequestBody', request.transformRequestBodyToBuffer);
api.hooks.onRequest.addHook('requestVariableReplacer', request.requestVariableReplacer);
api.hooks.onRequest.addHook('transformRequestBody', request.transformRequestBodyToBuffer);
api.hooks.onRequest.addHook('encodeRequestBody', request.encodeRequestBody);

api.hooks.onRequest.addInterceptor(request.isTrustedInterceptor);
Expand Down

0 comments on commit b754ab7

Please sign in to comment.