Skip to content

fixed an issue in checking https#46

Merged
ianpartridge merged 6 commits intoKitura:masterfrom
TheM4hd1:master
Dec 17, 2018
Merged

fixed an issue in checking https#46
ianpartridge merged 6 commits intoKitura:masterfrom
TheM4hd1:master

Conversation

@TheM4hd1
Copy link
Contributor

replaced .contains("https") with .hasPrefix("https")
.contains can cause a problem.

replaced .contains("https") with .hasPrefix("https")
.contains can cause a problem.
@CLAassistant
Copy link

CLAassistant commented Dec 11, 2018

CLA assistant check
All committers have signed the CLA.

@ianpartridge
Copy link
Contributor

Thanks for the PR! We'll get it reviewed soon :)

@nethraravindran
Copy link
Contributor

nethraravindran commented Dec 13, 2018

@TheM4hd1 Thanks for the PR! Can we have a test case?

@TheM4hd1
Copy link
Contributor Author

tests were include a function named testGetSelfSignedCert, which tests ssl, the problem were in the initializing request which fixed with replacing .contains with .hasPrefix, anyway I've added a test again.
the test url is an insecure url but containing https which could causes error when requesting.
it fixes now.
Regards.

@nethraravindran
Copy link
Contributor

@TheM4hd1 can you please look into travis failures?

replaced test url, travis ip addresses were blocked by previous server.
@TheM4hd1
Copy link
Contributor Author

I'm getting crazy with this travis, thats not my test case error,
mine passed.

Test Case '-[SwiftyRequestTests.SwiftyRequestTests testInsecureConnection]' started.
Test Case '-[SwiftyRequestTests.SwiftyRequestTests testInsecureConnection]' passed (0.209 seconds).

@nethraravindran
Copy link
Contributor

@TheM4hd1 Can you try reproducing this issue on Linux or a docker. It can be a corelibs-foundation bug as well ( I doubt ). Please let me know what you think or if you need some help on this

@TheM4hd1
Copy link
Contributor Author

I've tested on ubuntu 16.04 and it works fine.
Test Results

Copy link
Contributor

@nethraravindran nethraravindran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ianpartridge ianpartridge merged commit b47f582 into Kitura:master Dec 17, 2018
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.

4 participants