Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Fix request string bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pvzig authored Nov 17, 2016
1 parent acabbb6 commit 7286626
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SlackKit/Sources/Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 7286626

Please sign in to comment.