mirror of
https://github.com/anthonyraymond/joal.git
synced 2024-11-10 09:02:31 +08:00
Fix a if condition to fix missing event in tracker request.
This commit is contained in:
parent
b03b29a79e
commit
98ad5abc95
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ public final class HTTPAnnounceRequestMessage extends HTTPTrackerMessage impleme
|
|||
emulatedClientQuery = emulatedClientQuery
|
||||
.replaceAll("\\{key}", URLEncoder.encode(emulatedClient.getKey().get(), Torrent.BYTE_ENCODING));
|
||||
}
|
||||
if (this.getEvent() == null || RequestEvent.NONE != this.getEvent()) {
|
||||
if (this.getEvent() == null || this.getEvent() == RequestEvent.NONE) {
|
||||
// if event was NONE, remove the event from the query string
|
||||
emulatedClientQuery = emulatedClientQuery.replaceAll("(event=\\{event})", "");
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue