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

Commit 1021440

Browse files
committed
Better yet don't make it a extension method on string
1 parent f5838ca commit 1021440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceStack.Text/HttpUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static string SetHashParam(this string url, string key, string val)
106106
return url + prefix + key + "=" + val.UrlEncode();
107107
}
108108

109-
public static bool HasRequestBody(this string httpMethod)
109+
public static bool HasRequestBody(string httpMethod)
110110
{
111111
switch (httpMethod)
112112
{
@@ -534,7 +534,7 @@ public static string SendStringToUrl(this string url, string method = null,
534534
writer.Write(requestBody);
535535
}
536536
}
537-
else if (method != null && method.HasRequestBody())
537+
else if (method != null && HasRequestBody(method))
538538
{
539539
webReq.ContentLength = 0;
540540
}

0 commit comments

Comments
 (0)