From 72866262d26dd6d78f0b0f6a8008438de6074a0d Mon Sep 17 00:00:00 2001 From: Peter Zignego Date: Thu, 17 Nov 2016 16:30:28 -0500 Subject: [PATCH] Fix request string bug --- SlackKit/Sources/Extensions.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SlackKit/Sources/Extensions.swift b/SlackKit/Sources/Extensions.swift index 37b0518..b199a04 100644 --- a/SlackKit/Sources/Extensions.swift +++ b/SlackKit/Sources/Extensions.swift @@ -47,11 +47,10 @@ internal extension Dictionary where Key: ExpressibleByStringLiteral, Value: Any for key in self.keys { if let value = self[key] as? String, let encodedValue = value.addingPercentEncoding(withAllowedCharacters: CharacterSet.urlHostAllowed) { requestString += "&\(key)=\(encodedValue)" - } else if let value = self[key] as? Int { + } else if let value = self[key] { requestString += "&\(key)=\(value)" } } - return requestString } }