Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async execute(context: Context): Promise {
try {
let sdkVersionValue: string = `mgt/${PACKAGE_VERSION}`;
sdkVersionValue += ', ' + getRequestHeader(context.request, context.options, 'SdkVersion');
setRequestHeader(context.request, context.options, 'SdkVersion', sdkVersionValue);
return await this.nextMiddleware.execute(context);
} catch (error) {
throw error;
}
}
/**