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

Commit acecaa3

Browse files
committed
Move ToFormUrlEncoded to SS.Client
1 parent 7d6a1a7 commit acecaa3

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/ServiceStack.Text/PclExport.Net40.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,26 +1022,6 @@ public static StringCollection ToStringCollection(List<string> items)
10221022

10231023
public static class PclExportExt
10241024
{
1025-
public static string ToFormUrlEncoded(this NameValueCollection queryParams)
1026-
{
1027-
var sb = new System.Text.StringBuilder();
1028-
foreach (string key in queryParams)
1029-
{
1030-
var values = queryParams.GetValues(key);
1031-
if (values == null) continue;
1032-
1033-
foreach (var value in values)
1034-
{
1035-
if (sb.Length > 0)
1036-
sb.Append('&');
1037-
1038-
sb.AppendFormat("{0}={1}", key.UrlEncode(), value.UrlEncode());
1039-
}
1040-
}
1041-
1042-
return sb.ToString();
1043-
}
1044-
10451025
//HttpUtils
10461026
public static WebResponse PostFileToUrl(this string url,
10471027
FileInfo uploadFileInfo, string uploadFileMimeType,

0 commit comments

Comments
 (0)