python-tent-client
python-tent-client copied to clipboard
Support multiple Link headers during discovery
Python's requests library only gives us the last one when more than one is specified. We can fix that by parsing the Link header ourselves by grabbing it from r.headers['Link'] and splitting it into separate items. This would happen in TentApp._discoverAPIUrls().
Once we have more than one Link header we'll need a loop to try them one at a time until one succeeds.