Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit ca13d73

Browse files
committed
Define Constants for NET40
1 parent 27ad1dc commit ca13d73

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Titanium.Web.Proxy/ProxyServer.cs

+2
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ public static void Initialize()
7373
return false;
7474
};
7575

76+
#if NET40
7677
//Fix a bug in .NET 4.0
7778
NetFrameworkHelper.UrlPeriodFix();
7879
//useUnsafeHeaderParsing
80+
#endif
7981
NetFrameworkHelper.ToggleAllowUnsafeHeaderParsing(true);
8082
}
8183

Titanium.Web.Proxy/Titanium.Web.Proxy.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@
2020
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
2121
<PlatformTarget>AnyCPU</PlatformTarget>
2222
<OutputPath>bin\Debug\</OutputPath>
23-
<DefineConstants>DEBUG</DefineConstants>
23+
<DefineConstants>DEBUG;NET40</DefineConstants>
2424
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2525
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
2626
</PropertyGroup>
2727
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
2828
<PlatformTarget>AnyCPU</PlatformTarget>
2929
<OutputPath>bin\Release\</OutputPath>
3030
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
31+
<DefineConstants>NET40</DefineConstants>
3132
</PropertyGroup>
3233
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug-Net45|AnyCPU'">
3334
<DebugSymbols>true</DebugSymbols>

0 commit comments

Comments
 (0)