python-urllib3/tests/smoke/test.py
Benjamin A. Beasley 18da90f602 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.

(cherry picked from Fedora commit b8b7567aeecca104ae526e92800fa1de0fee1758)
2026-01-27 11:21:25 +01:00

9 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)