aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/syscall_linux_arm.go
diff options
context:
space:
mode:
authorJohan Brandhorst <johan.brandhorst@gmail.com>2018-08-24 12:10:01 +0100
committerRichard Musiol <neelance@gmail.com>2018-09-23 19:59:57 +0000
commitce536837d8e53f1bf0c7ef450d4580d19f7d6f52 (patch)
tree4a28b89f53171376c31842b7d186ad7d2d1a703d /src/syscall/syscall_linux_arm.go
parentfdefabadf0a2cb99accb2afe49eafce0eaeb53a7 (diff)
downloadgo-ce536837d8e53f1bf0c7ef450d4580d19f7d6f52.tar.xz
net/http: ensure null body in Fetch response is not read
The Fetch API returns a null body if there is no response body, on browsers that support streaming the response body. This change ensures we check for both undefined and null bodies before attempting to read the body. Fixes #27196 Change-Id: I0da86b61284fe394418b4b431495e715a037f335 Reviewed-on: https://go-review.googlesource.com/131236 Reviewed-by: Richard Musiol <neelance@gmail.com> Run-TryBot: Richard Musiol <neelance@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/syscall/syscall_linux_arm.go')
0 files changed, 0 insertions, 0 deletions