diff options
| author | Charlotte Brandhorst-Satzkorn <charlotte@catzkorn.dev> | 2021-10-22 22:46:46 -0400 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2021-10-25 17:02:16 +0000 |
| commit | 52b10ab79451df78797b87e40eb9371127bad260 (patch) | |
| tree | e9d9f3b16f6b6d40671dcbf2ebc80a1d2758fe6b /src/cmd/compile/internal/noder/noder.go | |
| parent | c6e82e5808f4fb6da0fcc9754e29a220451a0dfd (diff) | |
| download | go-52b10ab79451df78797b87e40eb9371127bad260.tar.xz | |
net/http: correct Content-Length parsing for js/wasm
The Content-Length was incorrectly set to 0 for ill-formed and invalid
values. In these cases, return an error.
If the Content-Length header was omitted, it was incorrectly set to 0.
In this case, set the Content-Length value to -1.
Fixes #49108
Change-Id: I24fe9a31ed5b6ddb53f2b2bd10f2c84e428823e3
Reviewed-on: https://go-review.googlesource.com/c/go/+/358134
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Trust: Brad Fitzpatrick <bradfitz@golang.org>
Trust: David Crawshaw <crawshaw@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/noder/noder.go')
0 files changed, 0 insertions, 0 deletions
