mirror of
https://github.com/anthonyraymond/joal.git
synced 2024-11-10 09:02:31 +08:00
Make EmulatedClient headers immutable.
This commit is contained in:
parent
748bc93dfa
commit
0359108e0c
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ public class EmulatedClient {
|
|||
public EmulatedClient(final String peerId, final String key, final String query, final Collection<HttpHeader> headers, final Integer numwant) {
|
||||
this.peerId = peerId;
|
||||
this.query = query;
|
||||
this.headers = headers.stream().map(h -> new AbstractMap.SimpleEntry<>(h.getName(), h.getValue())).collect(Collectors.toList());
|
||||
this.headers = headers.stream().map(h -> new AbstractMap.SimpleImmutableEntry<>(h.getName(), h.getValue())).collect(Collectors.toList());
|
||||
this.key = key;
|
||||
this.numwant = numwant;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue