mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-08-02 14:18:44 +00:00
Revert "Update UnionPatcher/Patcher.cs"
This reverts commit 4db23adae4
.
This commit is contained in:
parent
4db23adae4
commit
be1993c866
1 changed files with 4 additions and 2 deletions
|
@ -21,8 +21,10 @@ public static class Patcher {
|
||||||
|
|
||||||
public static byte[] PatchData(byte[] data, string serverUrl) {
|
public static byte[] PatchData(byte[] data, string serverUrl) {
|
||||||
#region Validation
|
#region Validation
|
||||||
if(serverUrl.EndsWith('/')) {
|
// If server URL contains a trailing slash, loop until it's gone.
|
||||||
throw new ArgumentException("URL must not contain a trailing slash!");
|
while (serverUrl.EndsWith('/'))
|
||||||
|
{
|
||||||
|
serverUrl = serverUrl.Remove(serverUrl.Length - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attempt to create URI to see if it's valid
|
// Attempt to create URI to see if it's valid
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue