mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
http protocol: AnnounceRequest: always ask for compact responses
This commit is contained in:
parent
9f9d74e2d8
commit
ee016ea0b6
1 changed files with 3 additions and 0 deletions
|
|
@ -59,6 +59,9 @@ impl AnnounceRequest {
|
|||
output.write_all(::urlencoding::encode(key.as_str()).as_bytes())?;
|
||||
}
|
||||
|
||||
// Always ask for compact responses to ease load testing of non-aquatic trackers
|
||||
output.write_all(b"&compact=1")?;
|
||||
|
||||
output.write_all(b" HTTP/1.1\r\nHost: localhost\r\n\r\n")?;
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue