Improved backwards compatibility

This commit is contained in:
ruri
2020-03-27 04:22:50 +01:00
parent 3bc03fb165
commit 354108d94d
+10 -3
View File
@@ -83,9 +83,16 @@ namespace RuriLib
writer
.Label(Label)
.Token("BYPASSCF")
.Literal(Url)
.Token("SECPROTO")
.Token(SecurityProtocol)
.Literal(Url);
if (SecurityProtocol != SecurityProtocol.SystemDefault)
{
writer
.Token("SECPROTO")
.Token(SecurityProtocol);
}
writer
.Literal(UserAgent, "UserAgent")
.Boolean(PrintResponseInfo, "PrintResponseInfo");
return writer.ToString();