mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-30 05:32:30 +08:00
7 lines
247 B
Python
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('-', '_'))
|