Skip to content

Commit

Permalink
Fix #if for full framework SignalR client (#27999)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanConroy authored Nov 23, 2020
1 parent 20e2c6f commit af907cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public WebSocketsTransport(HttpConnectionOptions httpConnectionOptions, ILoggerF
{
// Full Framework will throw when trying to set the User-Agent header
// So avoid setting it in netstandard2.0 and only set it in netstandard2.1 and higher
#if !NETSTANDARD2_0
#if !NETSTANDARD2_0 && !NET461
_webSocket.Options.SetRequestHeader("User-Agent", Constants.UserAgentHeader.ToString());
#else
// Set an alternative user agent header on Full framework
Expand Down

0 comments on commit af907cd

Please sign in to comment.