mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
parent
5380aaca8c
commit
ce3101d016
3 changed files with 5 additions and 5 deletions
|
@ -162,7 +162,7 @@ func pollOffer(sid string) *webrtc.SessionDescription {
|
|||
if resp.StatusCode != http.StatusOK {
|
||||
log.Printf("broker returns: %d", resp.StatusCode)
|
||||
} else {
|
||||
body, err := ioutil.ReadAll(resp.Body)
|
||||
body, err := ioutil.ReadAll(http.MaxBytesReader(nil, resp.Body, 100000))
|
||||
if err != nil {
|
||||
log.Printf("error reading broker response: %s", err)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue