Skip to content
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

Merged
merged 2 commits into from
Jan 26, 2019
Merged

Conversation

nethraravindran
Copy link
Contributor

This PR fixes all Kitura failures reported in #154

@nethraravindran nethraravindran added this to the 2019.02 milestone Jan 21, 2019
@nethraravindran nethraravindran self-assigned this Jan 21, 2019
@codecov-io
Copy link

codecov-io commented Jan 21, 2019

Codecov Report

Merging #156 into master will increase coverage by 0.12%.
The diff coverage is 84.61%.

Impacted file tree graph

@@            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
Flag Coverage Δ
#KituraNet 66.84% <84.61%> (+0.12%) ⬆️
Impacted Files Coverage Δ
Sources/KituraNet/HTTP/HTTPServerRequest.swift 72.67% <84.61%> (+0.97%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c02779e...9b6a8b8. Read the comment docs.


_urlComponents?.port = Int(localAddressPort)

let uriComponents = _urlString.components(separatedBy: "?")
Copy link
Contributor

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 {
Copy link
Contributor

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.

Copy link
Contributor

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:)

@pushkarnk
Copy link
Contributor

I just rebased this on the latest master to make sure Kitura tests are run.

@pushkarnk
Copy link
Contributor

pushkarnk commented Jan 26, 2019

Kitura tests have passed.

@pushkarnk pushkarnk merged commit fe5db77 into Kitura:master Jan 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants