You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem. Thanks.
What steps will reproduce the problem?
1. Code up a script that just handles "/" with a function that will dump
the form value for "foo". (Reproduce case attached.)
2. Run the server.
3. curl -F "foo=bar" <url>
What is the expected output? What do you see instead?
"bar" from the server.
Instead: a long pause, followed by the attached crash dump.
What is your $GOOS? $GOARCH?
GOOS=linux
GOARCH=amd64
Which revision are you sync'ed to? (hg log -l 1)
changeset: 4038:dea3d2ff5792
tag: tip
user: Russ Cox <rsc@golang.org>
date: Sat Nov 14 10:28:53 2009 -0800
summary: typos
Please provide any additional information below.
curl -d "foo=bar" <url> works as expected.
Also, a side-by-side comparison of a form submission with Chrome and with
Curl can be found here if any additional info is needed:
http://paste.pocoo.org/show/oKlQVnbCe6wqVrgroO6m/
This is a known TODO in the code (http/request.go:634).
On a related note: Request method FormValue, line 649: Should check for r.Form != nil in
any case to avoid the
crash in case of errors returned from r.ParseForm.
by suraci.alex:
Attachments:
The text was updated successfully, but these errors were encountered: