Skip to content

Commit 021348e

Browse files
Remove reference to System.Net.Http which has some conflicts on net 4.6.2. (#382)
1 parent 390c919 commit 021348e

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

dotnet/src/dotnetframework/GxClasses/GxClasses.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
<Reference Include="System.Messaging">
5353
<Name>System.Messaging</Name>
5454
</Reference>
55-
<Reference Include="System.Net.Http" />
5655
<Reference Include="System.Runtime.Serialization">
5756
<RequiredTargetFramework>3.0</RequiredTargetFramework>
5857
</Reference>

dotnet/src/dotnetframework/GxClasses/Helpers/HttpHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ public class HttpHelper
6464
static readonly ILog log = log4net.LogManager.GetLogger(typeof(GeneXus.Http.HttpHelper));
6565
public const string ASPX = ".aspx";
6666
public const string GXOBJECT = "/gxobject";
67+
public const string HttpPostMethod= "POST";
68+
public const string HttpGetMethod = "GET";
6769

6870
public static void SetResponseStatus(HttpContext httpContext, string statusCode, string statusDescription)
6971
{

dotnet/src/dotnetframework/GxClasses/Services/GXRestServices.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,11 +492,11 @@ bool IsPost()
492492
{
493493
if (wcfContext != null)
494494
{
495-
return HttpMethod.Post.Method == wcfContext.IncomingRequest.Method;
495+
return HttpHelper.HttpPostMethod == wcfContext.IncomingRequest.Method;
496496
}
497497
else if (httpContext != null)
498498
{
499-
return HttpMethod.Post.Method == httpContext.Request.HttpMethod;
499+
return HttpHelper.HttpPostMethod == httpContext.Request.HttpMethod;
500500
}
501501
else return false;
502502
}

dotnet/src/dotnetframework/Providers/Storage/GXAzureStorage/GXAzureStorage.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<Reference Include="System.Data.DataSetExtensions" />
1818
<Reference Include="Microsoft.CSharp" />
1919
<Reference Include="System.Data" />
20-
<Reference Include="System.Net.Http" />
2120
<Reference Include="System.Xml" />
2221
</ItemGroup>
2322
<ItemGroup>

dotnet/src/dotnetframework/Providers/Storage/GXOpenStack/GXOpenStack.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
<Reference Include="System.Data.DataSetExtensions" />
2727
<Reference Include="Microsoft.CSharp" />
2828
<Reference Include="System.Data" />
29-
<Reference Include="System.Net.Http" />
3029
<Reference Include="System.Xml" />
3130
</ItemGroup>
3231
<ItemGroup>

0 commit comments

Comments
 (0)