mirror of
https://github.com/samsonjs/Advanced-NSOperations.git
synced 2026-04-27 14:57:37 +00:00
Use HTTPS
This commit is contained in:
parent
69f9a71b0f
commit
0646478cff
2 changed files with 2 additions and 8 deletions
|
|
@ -29,7 +29,7 @@ class DownloadEarthquakesOperation: GroupOperation {
|
||||||
or when the services you use offer secure communication options, you
|
or when the services you use offer secure communication options, you
|
||||||
should always prefer to use https.
|
should always prefer to use https.
|
||||||
*/
|
*/
|
||||||
let url = URL(string: "http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_month.geojson")!
|
let url = URL(string: "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_month.geojson")!
|
||||||
let task = URLSession.shared.downloadTask(with: url) { url, response, error in
|
let task = URLSession.shared.downloadTask(with: url) { url, response, error in
|
||||||
self.downloadFinished(url: url, response: response as? HTTPURLResponse, error: error as NSError?)
|
self.downloadFinished(url: url, response: response as? HTTPURLResponse, error: error as NSError?)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,13 +25,7 @@
|
||||||
<key>NSAppTransportSecurity</key>
|
<key>NSAppTransportSecurity</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>NSExceptionDomains</key>
|
<key>NSExceptionDomains</key>
|
||||||
<dict>
|
<dict/>
|
||||||
<key>earthquake.usgs.gov</key>
|
|
||||||
<dict>
|
|
||||||
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
</dict>
|
||||||
<key>NSLocationAlwaysUsageDescription</key>
|
<key>NSLocationAlwaysUsageDescription</key>
|
||||||
<string>Earthquakes uses your location to show how close you are to the epicenter of an earthquake.</string>
|
<string>Earthquakes uses your location to show how close you are to the epicenter of an earthquake.</string>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue