From 5b1c252fd188c6d9d723c7f4bf22f26b9a624df9 Mon Sep 17 00:00:00 2001 From: Tomohisa Takaoka Date: Fri, 22 Apr 2016 23:24:33 +0900 Subject: [PATCH] Could not connect https continued # Problem: could not connect https host https://gist.github.com/tomohisa/e32206ca65adda28abc6fc6200ce9808 # Reason: did not use TCPSSLConnection, it was using TCPConnection. # Fix: changed to use TCPSSLConnection and passed parameters Needed to delete var request = request because its inout. --- Source/Client.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Source/Client.swift b/Source/Client.swift index ea4fa62..feb6195 100644 --- a/Source/Client.swift +++ b/Source/Client.swift @@ -71,7 +71,6 @@ public final class Client: Responder { extension Client { private func addHeaders(_ request: inout Request) { - var request = request request.host = "\(host):\(port)" request.userAgent = "Zewo"