Skip to content

Commit cebbc73

Browse files
miya789Matthew John Cheetham
andauthored
http: fix to use string.IsNullOrWhiteSpace
Co-authored-by: Matthew John Cheetham <[email protected]>
1 parent 98281d5 commit cebbc73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/Core/CurlCookie.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public IList<Cookie> Parse(string content)
3838
{
3939
domain = domain.TrimStart('.');
4040
}
41-
var path = parts[2] == "" ? "/" : parts[2];
41+
var path = string.IsNullOrWhiteSpace(parts[2]) ? "/" : parts[2];
4242
var secureOnly = parts[3].Equals("TRUE", StringComparison.OrdinalIgnoreCase);
4343
var expires = ParseExpires(parts[4]);
4444
var name = parts[5];

0 commit comments

Comments
 (0)