Skip to content

Commit 6c104fe

Browse files
added extra command line parameter --hide-server
1 parent 810dd36 commit 6c104fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/kubernetes_wsgi/__main__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ def parse_args(argv: Sequence[Text]) -> Dict[str, Any]:
6060
default=20,
6161
help="Maximum number of threads to run",
6262
)
63+
parser.add_argument(
64+
"--hide-server",
65+
action="store_true",
66+
help="Hides server version in HTTP header"
67+
)
6368
args = parser.parse_args(argv)
6469
return {
6570
"application": args.application,
@@ -68,6 +73,7 @@ def parse_args(argv: Sequence[Text]) -> Dict[str, Any]:
6873
"health_check_path": args.health_check_path,
6974
"min_threads": args.min_threads,
7075
"max_threads": args.max_threads,
76+
"hide_server": args.hide_server,
7177
}
7278

7379

0 commit comments

Comments
 (0)