python-tent-client icon indicating copy to clipboard operation
python-tent-client copied to clipboard

Support multiple Link headers during discovery

Open longears opened this issue 13 years ago • 0 comments

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.

longears avatar Oct 03 '12 23:10 longears