Commit ee39a15
committed
Fix compatibility with urllib3 v2.6
urllib3 v2.6 removed `HTTPResponse.getheader(name, default)` in favor of
`HTTPResponse.headers.get(name, default)`, see urllib3/urllib3#3622
Changed from `resp.raw.getheader` to `resp.headers.get` for compatibility.
Fixed `test_response_headers` test to verify getheader() works properly.
Change-Id: Ic0fab4ca6407f5435d87aa02d533f3eb826f5b3b
Signed-off-by: Anthony Roussel <anthony@roussel.dev>1 parent 0c73602 commit ee39a15
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2003 | 2003 | | |
2004 | 2004 | | |
2005 | 2005 | | |
| 2006 | + | |
2006 | 2007 | | |
2007 | 2008 | | |
2008 | 2009 | | |
| |||
0 commit comments