python-urllib3/tests/smoke/test.py
Benjamin A. Beasley b8b7567aee In the CI smoke test, do not check for a ‘server’ header
It no longer seems to be present, and this particular header was not the
point of the test.
2025-04-15 07:51:46 -04:00

8 lines
203 B
Python

import urllib3
http = urllib3.PoolManager()
r = http.request('GET', 'http://example.com/')
print('status = {0}'.format(r.status))
print(r.data)
if r.status != 200 or not r.data:
raise SystemExit(1)