Files
2020-04-08 10:39:44 -07:00

7 lines
247 B
Python

def get_wsgi_header(header):
"""Returns a WSGI compliant HTTP header.
See https://www.python.org/dev/peps/pep-3333/#environ-variables for
information from the spec.
"""
return 'HTTP_{}'.format(header.upper().replace('-', '_'))