Open angelofan opened 1 week ago
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.