Skip to content

Commit

Permalink
fix: set default internal request agent (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
Salakar authored Aug 23, 2024
1 parent 1bb9695 commit cbaeb12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/validateAdRequestOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
isUndefined,
isValidUrl,
} from './common';
import { version } from './version';
import { RequestOptions } from './types/RequestOptions';

export function validateAdRequestOptions(options?: RequestOptions) {
Expand Down Expand Up @@ -97,6 +98,8 @@ export function validateAdRequestOptions(options?: RequestOptions) {
}

out.requestAgent = options.requestAgent;
} else {
out.requestAgent = `rn-invertase-${version}`;
}

if (options.serverSideVerificationOptions) {
Expand Down

0 comments on commit cbaeb12

Please sign in to comment.