mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 14:04:12 +01:00
Fix tests
This commit is contained in:
parent
4f428c8ed1
commit
82126b85d2
1 changed files with 2 additions and 0 deletions
|
@ -168,6 +168,8 @@ namespace BTCPayServer
|
|||
|
||||
public static bool IsOnion(this HttpRequest request)
|
||||
{
|
||||
if (request?.Host.Host == null)
|
||||
return false;
|
||||
return request.Host.Host.EndsWith(".onion", StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue