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

Fix HTTPS uploads #438

Merged
merged 2 commits into from Aug 23, 2016
Merged

Fix HTTPS uploads #438

merged 2 commits into from Aug 23, 2016

Conversation

joeljfischer
Copy link
Contributor

Fixes #432

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

This bug fix has been unit tested

Summary

This PR fixes a bug which would cause HTTPS uploads to malform the URL causing them to fail.

Changelog

Bug Fixes
  • Fix HTTPS uploads not occurring

@joeljfischer joeljfischer added bug A defect in the library high priority labels Aug 22, 2016
@joeljfischer joeljfischer added this to the 4.2.X milestone Aug 22, 2016
@@ -76,7 +76,7 @@ - (void)dataFromURL:(NSURL *)url completionHandler:(SDLURLConnectionRequestCompl
}

- (void)uploadWithURLRequest:(NSURLRequest *)request data:(NSData *)data completionHandler:(SDLURLConnectionRequestCompletionHandler)completionHandler {
NSURL *newURL = nil;
NSURL *newURL = request.URL;
if ([request.URL.scheme isEqualToString:@"http"]) {
Copy link
Contributor

Choose a reason for hiding this comment

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

check newURL, not the request.

@asm09fsu
Copy link
Contributor

LGTM

@joeljfischer joeljfischer merged commit 12b1783 into master Aug 23, 2016
@joeljfischer joeljfischer deleted the hotfix/issue_432_https_fails branch August 23, 2016 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTTP limitation with ATS
2 participants