Skip to content

Commit

Permalink
types: add contentTypesToEncode option (#230)
Browse files Browse the repository at this point in the history
* add contentTypesToEncode option

* adding option in test file

Co-authored-by: Mirco Cipriani <[email protected]>
  • Loading branch information
mircoc and mircoisendu authored Feb 15, 2022
1 parent 9cf852f commit ac5f8c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export interface FastifyReplyFromOptions {
maxSockets?: number;
rejectUnauthorized?: boolean;
sessionTimeout?: number;
contentTypesToEncode?: string[];
}

declare const fastifyReplyFrom: FastifyPlugin<FastifyReplyFromOptions>
Expand Down
3 changes: 2 additions & 1 deletion test/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const fullOptions: FastifyReplyFromOptions = {
undici: {
connections: 100,
pipelining: 10
}
},
contentTypesToEncode: ['application/x-www-form-urlencoded']
};
tap.autoend(false);

Expand Down

0 comments on commit ac5f8c0

Please sign in to comment.