Closed edmw closed 5 years ago
Spaces must be url encoded to form a valid url. While most browsers will correctly process a Location header with such an url, other components can and will break, for example URL(string: googleRouter.authURL) will return nil.
URL(string: googleRouter.authURL)
https://github.com/vapor-community/Imperial/blob/c1b6b21453f7cb2863d695abdef881bc2cd127dc/Sources/Imperial/Services/Google/GoogleRouter.swift#L14
Spaces must be url encoded to form a valid url. While most browsers will correctly process a Location header with such an url, other components can and will break, for example
URL(string: googleRouter.authURL)
will return nil.https://github.com/vapor-community/Imperial/blob/c1b6b21453f7cb2863d695abdef881bc2cd127dc/Sources/Imperial/Services/Google/GoogleRouter.swift#L14