diff options
Diffstat (limited to 'libgo/go/net/http/cgi/child.go')
-rw-r--r-- | libgo/go/net/http/cgi/child.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/net/http/cgi/child.go b/libgo/go/net/http/cgi/child.go index e188cd4a250..e6c3ef911ab 100644 --- a/libgo/go/net/http/cgi/child.go +++ b/libgo/go/net/http/cgi/child.go @@ -70,7 +70,7 @@ func RequestFromMap(params map[string]string) (*http.Request, error) { r.Host = params["HTTP_HOST"] if lenstr := params["CONTENT_LENGTH"]; lenstr != "" { - clen, err := strconv.Atoi64(lenstr) + clen, err := strconv.ParseInt(lenstr, 10, 64) if err != nil { return nil, errors.New("cgi: bad CONTENT_LENGTH in environment: " + lenstr) } |