Skip to content

Commit 50e4c8b

Browse files
committed
Accept proxy URL without trailing slash
1 parent f730438 commit 50e4c8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

smsapi/ProxyHTTP.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class ProxyHTTP : Proxy
1717

1818
public ProxyHTTP(string baseUrl, HttpClient? httpClient = null)
1919
{
20-
this.baseUrl = baseUrl;
20+
this.baseUrl = baseUrl.EndsWith("/") ? baseUrl : baseUrl + "/";
2121
this.httpClient = httpClient;
2222
}
2323

0 commit comments

Comments
 (0)