|
|
| Previous ID |
SR-7620 |
| Radar |
None |
| Original Reporter |
sdidanov (JIRA User) |
| Type |
Bug |
| Status |
Resolved |
| Resolution |
Done |
Environment
Ubuntu 16.04(with last updates), Swift 4.1.1
Additional Detail from JIRA
|
|
| Votes |
0 |
| Component/s |
Foundation |
| Labels |
Bug |
| Assignee |
@spevans |
| Priority |
Medium |
md5: 3d20f9724259d3d924f97a21c1420271
Issue Description:
The following code:
import Foundation
do {
let url = URL(string: "https://www.google.com")!
let htmlString = try String(contentsOf: url, encoding: .ascii)
print("Start", htmlString, "Finish")
}
catch {
print(error)
}
On swift3 returns google page. On Swift 4 returns:
$ swift test.swift
Start Finish