You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The UserAgent is null when there is no User-Agent header in the request.
The header is a web standard, but we can not guarantee that is present. For example if the call is made with cURL, HttpClient, low level component, ...
The code must be "null-safe", it should not generate an exception if UserAgent is null.
The text was updated successfully, but these errors were encountered:
Although it is possible to avoid passing null in with some pre-judgment, it is easy to forget. For example, every time I use this package for a new project, this problem will occur again when I forget to write some pre-judgment.
From RFC7231 User-Agent :
From Microsoft Dotnet Api :
The header is a web standard, but we can not guarantee that is present. For example if the call is made with cURL, HttpClient, low level component, ...
The code must be "null-safe", it should not generate an exception if UserAgent is null.
The text was updated successfully, but these errors were encountered: