Skip to content

Commit

Permalink
add android UA
Browse files Browse the repository at this point in the history
  • Loading branch information
rwecho committed Nov 30, 2023
1 parent 87005fb commit 96c144d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/V2ex.Api/ApiService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ namespace V2ex.Api;
public class ApiService
{
#if DEBUG
private const string USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0";
private const string USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0";
#else
private const string USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.79";
private const string USER_AGENT = "Mozilla/5.0 (Linux; Android 9.0; V2er Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Mobile Safari/537.36";
#endif

public ApiService(IHttpClientFactory httpClientFactory, ILogger<ApiService> logger)
Expand Down

0 comments on commit 96c144d

Please sign in to comment.