Skip to content

Commit

Permalink
Added case sensitive option to definition file. (#1691)
Browse files Browse the repository at this point in the history
* Added case sensitive option to definition file.

* Added casSensitive Option to test
  • Loading branch information
hhwang39 authored and delvedor committed Jun 11, 2019
1 parent d8730a2 commit fda8448
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions fastify.d.ts
Expand Up @@ -178,6 +178,7 @@ declare namespace fastify {
}
type TrustProxyFunction = (addr: string, index: number) => boolean
interface ServerOptions {
caseSensitive?: boolean,
ignoreTrailingSlash?: boolean,
bodyLimit?: number,
pluginTimeout?: number,
Expand Down
1 change: 1 addition & 0 deletions test/types/index.ts
Expand Up @@ -58,6 +58,7 @@ const cors = require('cors')

// other simple options
const otherServer = fastify({
caseSensitive: false,
ignoreTrailingSlash: true,
bodyLimit: 1000,
maxParamLength: 200,
Expand Down

0 comments on commit fda8448

Please sign in to comment.