Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Add support for optional default headers #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion serve/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,12 @@ def normalise_config(config, ports):
for scheme, ports_used in ports.iteritems():
ports_[scheme] = ports_used

default_headers = config["default_headers"] if "default_headers" in config else []

return {"host": host,
"domains": domains,
"ports": ports_}
"ports": ports_,
"default_headers": default_headers}


def get_ssl_config(config, external_domains, ssl_environment):
Expand Down