Skip to content

Commit

Permalink
新增 Iphone 的 User-Agent 参数
Browse files Browse the repository at this point in the history
  • Loading branch information
JiuLing-zhang committed Jul 19, 2023
1 parent 017cdf5 commit a791c6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/JiuLing.CommonLibs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<PackageProjectUrl>https://github.com/JiuLing-zhang/JiuLing.CommonLibs</PackageProjectUrl>
<PackageIcon>nuget_icon.png</PackageIcon>
<PackageIconUrl />
<Version>1.5.7</Version>
<Version>1.5.8</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Copyright>Copyright (c) 2021 九零</Copyright>
Expand Down
6 changes: 6 additions & 0 deletions src/Net/BrowserDefaultHeader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,11 @@ public class BrowserDefaultHeader
{"Upgrade-Insecure-Requests","1"},
{"Connection","keep-alive"}
};

/// <summary>
/// Iphone 的 User-Agent 参数
/// </summary>
public static string IphoneUserAgent => "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";

}
}

0 comments on commit a791c6c

Please sign in to comment.