mirror of https://github.com/golang/go.git
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>
This commit is contained in:
parent
7e1028a9ff
commit
b00ebeaebc
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue