[RN] Handle multiple schemes/protocol in URLs

This commit is contained in:
Lyubo Marinov 2017-07-31 19:42:23 -05:00
parent 377be4272a
commit c259551d9a
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ export function toURLString(obj: ?(string | Object)): ?string {
* {@code Object}. * {@code Object}.
*/ */
export function urlObjectToString(o: Object): ?string { export function urlObjectToString(o: Object): ?string {
const url = parseStandardURIString(o.url || ''); const url = parseStandardURIString(_fixURIStringScheme(o.url || ''));
// protocol // protocol
if (!url.protocol) { if (!url.protocol) {