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

Commit 6b32fb4

Browse files
committed
Use InvariantCultuer in ServerUserAgent UserAgent string
1 parent af29d77 commit 6b32fb4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ServiceStack.Text/Env.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,16 @@ static Env()
9696
ReflectionOptimizer.Instance = ExpressionReflectionOptimizer.Provider;
9797
}
9898

99-
ServerUserAgent = "ServiceStack/" +
100-
ServiceStackVersion + " "
99+
VersionString = ServiceStackVersion.ToString(CultureInfo.InvariantCulture);
100+
101+
ServerUserAgent = "ServiceStack/"
102+
+ VersionString + " "
101103
+ PclExport.Instance.PlatformName
102104
+ (IsMono ? "/Mono" : "")
103105
+ (IsLinux ? "/Linux" : IsOSX ? "/OSX" : IsUnix ? "/Unix" : IsWindows ? "/Windows" : "/UnknownOS")
104106
+ (IsIOS ? "/iOS" : IsAndroid ? "/Android" : IsUWP ? "/UWP" : "");
105107

106-
VersionString = ServiceStackVersion.ToString(CultureInfo.InvariantCulture);
107-
108-
__releaseDate = new DateTime(2018,12,16);
108+
__releaseDate = new DateTime(2001,01,01);
109109
}
110110

111111
public static string VersionString { get; set; }

0 commit comments

Comments
 (0)