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

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pvzig committed May 5, 2016
1 parent 00b0823 commit 2561e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SlackKit/Sources/NetworkInterface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ internal struct NetworkInterface {
for key in parameters.keys {
if let value = parameters[key] as? String {
#if os(Linux)
if let encodedValue = value.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.urlHostAllowed()) {
if let encodedValue = value.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLQueryAllowedCharacterSet()) {
requestString += "&\(key)=\(encodedValue)"
}
#else
if let encodedValue = value.addingPercentEncoding(withAllowedCharacters: NSCharacterSet.urlHostAllowed()) {
if let encodedValue = value.addingPercentEncoding(withAllowedCharacters: NSCharacterSet.urlQueryAllowed()) {
requestString += "&\(key)=\(encodedValue)"
}
#endif
Expand Down

0 comments on commit 2561e8b

Please sign in to comment.