Skip to content

Commit c7c4861

Browse files
adriangbshalevr
andauthored
Update util/opentelemetry-util-http/src/opentelemetry/util/http/__init__.py
Co-authored-by: Shalev Roda <[email protected]>
1 parent 1d8a9b9 commit c7c4861

File tree

1 file changed

+1
-1
lines changed
  • util/opentelemetry-util-http/src/opentelemetry/util/http

1 file changed

+1
-1
lines changed

util/opentelemetry-util-http/src/opentelemetry/util/http/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def sanitize_method(method: Optional[str]) -> Optional[str]:
219219

220220
def get_custom_headers(env_var: str) -> list[str]:
221221
custom_headers = environ.get(env_var, None)
222-
if custom_headers:
222+
if custom_headers is not None:
223223
return [
224224
custom_headers.strip()
225225
for custom_headers in custom_headers.split(",")

0 commit comments

Comments
 (0)