-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build urlURL using URLComponents #156
Conversation
Codecov Report
@@ Coverage Diff @@
## master #156 +/- ##
==========================================
+ Coverage 66.71% 66.84% +0.12%
==========================================
Files 20 20
Lines 1298 1300 +2
==========================================
+ Hits 866 869 +3
+ Misses 432 431 -1
Continue to review full report at Codecov.
|
|
||
_urlComponents?.port = Int(localAddressPort) | ||
|
||
let uriComponents = _urlString.components(separatedBy: "?") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be better to use String.split()
here. See Kitura/Kitura-net#287
_urlComponents?.port = Int(localAddressPort) | ||
|
||
let uriComponents = _urlString.components(separatedBy: "?") | ||
if uriComponents.count > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check may not be necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry, this check will be needed if we use String.split(separator:)
I just rebased this on the latest master to make sure Kitura tests are run. |
Kitura tests have passed. |
This PR fixes all Kitura failures reported in #154