Skip to content

Commit

Permalink
Merge branch 'main' into deprecate-browser-footer
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPansino committed Jan 5, 2024
2 parents 6b3a0d3 + 3962f54 commit 87d5097
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion newrelic/api/asgi_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ def should_insert_html(self, headers):
content_type = None

for header_name, header_value in headers:
# assume header names are lower cased in accordance with ASGI spec
# ASGI spec (https://asgi.readthedocs.io/en/latest/specs/www.html#http) states
# header names should be lower cased, but not required
header_name = header_name.lower()
if header_name == b"content-type":
content_type = header_value
elif header_name == b"content-encoding":
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ envlist =
kafka-messagebroker_kafkapython-{py27,py38}-kafkapython{020001,020000},
kafka-messagebroker_kafkapython-{pypy27,py27,py37,py38,pypy38}-kafkapythonlatest,
memcached-datastore_bmemcached-{pypy27,py27,py37,py38,py39,py310,py311,py312}-memcached030,
memcached-datastore_memcache-{py27,py37,py38,py39,py310,py311,py312,pypy27,pypy38}-memcached01,
memcached-datastore_memcache-{py37,py38,py39,py310,py311,py312,pypy38}-memcached01,
memcached-datastore_pylibmc-{py27,py37},
memcached-datastore_pymemcache-{py27,py37,py38,py39,py310,py311,py312,pypy27,pypy38},
mongodb-datastore_pymongo-{py27,py37,py38,py39,py310,py311,py312,pypy27}-pymongo03,
Expand Down Expand Up @@ -174,7 +174,8 @@ deps =
adapter_gunicorn-aiohttp03-py312: aiohttp==3.9.0rc0
adapter_gunicorn-gunicorn19: gunicorn<20
adapter_gunicorn-gunicornlatest: gunicorn
adapter_hypercorn-hypercornlatest: hypercorn
; Temporarily pinned. Needs to be addressed
adapter_hypercorn-hypercornlatest: hypercorn<0.16
adapter_hypercorn-hypercorn0013: hypercorn<0.14
adapter_hypercorn-hypercorn0012: hypercorn<0.13
adapter_hypercorn-hypercorn0011: hypercorn<0.12
Expand Down

0 comments on commit 87d5097

Please sign in to comment.