apachedex: Tolerate non-ascii URLs.
Otherwise, if `url` contains non-ascii chars, startswith will fail with an error like: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 84: ordinal not in range(128) becasue 'http' is unicode. So byte-ify it to avoid this transcoding.
Showing
Please register or sign in to comment