From 5235dcbb80cee263f9c3e67221ea46982726d798 Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Mon, 10 Feb 2020 14:35:48 +0100 Subject: [PATCH] - add @ before server protocol strings --- GBase.Api/Communication/ServerProtocol.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GBase.Api/Communication/ServerProtocol.cs b/GBase.Api/Communication/ServerProtocol.cs index b914513..ab0da59 100644 --- a/GBase.Api/Communication/ServerProtocol.cs +++ b/GBase.Api/Communication/ServerProtocol.cs @@ -20,9 +20,9 @@ namespace GBase.Api.Communication switch (protocol) { case ServerProtocol.Http: - return "http://"; + return @"http://"; case ServerProtocol.Https: - return "https://"; + return @"https://"; case ServerProtocol.Tcp: throw new NotImplementedException(); default: @@ -32,9 +32,9 @@ namespace GBase.Api.Communication public static ServerProtocol GetServerProtocolFromString(string @string) { - if (@string.Equals("http://") || @string.Equals("http")) + if (@string.Equals(@"http://") || @string.Equals("http")) return ServerProtocol.Http; - else if (@string.Equals("https://") || @string.Equals("https")) + else if (@string.Equals(@"https://") || @string.Equals("https")) return ServerProtocol.Https; else throw new ArgumentOutOfRangeException(nameof(@string), @string, "Invalid string.");