Skip to content

Commit b00ebea

Browse files
Tim Coopermvdan
authored andcommitted
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í <[email protected]> Run-TryBot: Daniel Martí <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 7e1028a commit b00ebea

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/net/http/cgi/child.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ func RequestFromMap(params map[string]string) (*http.Request, error) {
8989
r.Header.Add(strings.ReplaceAll(k[5:], "_", "-"), v)
9090
}
9191

92-
// TODO: cookies. parsing them isn't exported, though.
93-
9492
uriStr := params["REQUEST_URI"]
9593
if uriStr == "" {
9694
// Fallback to SCRIPT_NAME, PATH_INFO and QUERY_STRING.

0 commit comments

Comments
 (0)