Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into swift-4.1-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-ci committed Dec 15, 2017
2 parents 3339345 + 75703bc commit 5423a49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Foundation/URLSession/http/HTTPURLProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ fileprivate extension _HTTPURLProtocol {
func curlHeaders(for httpHeaders: [AnyHashable : Any]?) -> [String] {
var result: [String] = []
var names = Set<String>()
if httpHeaders != nil {
let hh = httpHeaders as! [String:String]
if let hh = httpHeaders as? [String : String] {
hh.forEach {
let name = $0.0.lowercased()
guard !names.contains(name) else { return }
Expand Down

0 comments on commit 5423a49

Please sign in to comment.