diff options
| author | Tim Cooper <tim.cooper@layeh.com> | 2020-02-27 12:11:30 -0600 |
|---|---|---|
| committer | Daniel Martí <mvdan@mvdan.cc> | 2020-03-06 23:33:17 +0000 |
| commit | b00ebeaebcd8d7535ff08163a7907a6a8fe7b703 (patch) | |
| tree | 906cb9b94fa66cb18aa9abf30e774d50fb97bf89 /src/net/http/cgi | |
| parent | 7e1028a9ffaf577bfa527385b96f9063ca9d2984 (diff) | |
| download | go-b00ebeaebcd8d7535ff08163a7907a6a8fe7b703.tar.xz | |
net/http/cgi: remove outdated TODO
Cookies already work as http.Request parses the Cookie header on-demand
when the Cookie methods are called.
Change-Id: Ib7a6f68be02940ff0b56d2465c94545d6fd43847
Reviewed-on: https://go-review.googlesource.com/c/go/+/221417
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/net/http/cgi')
| -rw-r--r-- | src/net/http/cgi/child.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/net/http/cgi/child.go b/src/net/http/cgi/child.go index cb140f8f2f..9474175f17 100644 --- a/src/net/http/cgi/child.go +++ b/src/net/http/cgi/child.go @@ -89,8 +89,6 @@ func RequestFromMap(params map[string]string) (*http.Request, error) { r.Header.Add(strings.ReplaceAll(k[5:], "_", "-"), v) } - // TODO: cookies. parsing them isn't exported, though. - uriStr := params["REQUEST_URI"] if uriStr == "" { // Fallback to SCRIPT_NAME, PATH_INFO and QUERY_STRING. |
