This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix multiple URLs handling - Merge pull request #30 from matslindh/cl…
…ean-up-url-handling Fixes a couple of issues with multiple URLs, avoids always using the first URL sent in, and adds support for supplying a single string as the URL to use instead of requiring a list to be provided (since strings are lists as well, the old code will happily accept the string and then try to use each character as an URL). The patch also picks a host for requests based on the first character of the image id, so we actually use most of the URLs supplied to the client. If there is a request without an image id, the URL defined first in the list is used.
- Loading branch information
Showing
2 changed files
with
38 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters