Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error getting FormValue in MultipartForm request in Go 1.10 #25457

Closed
itopt opened this issue May 18, 2018 · 1 comment
Closed

Error getting FormValue in MultipartForm request in Go 1.10 #25457

itopt opened this issue May 18, 2018 · 1 comment

Comments

@itopt
Copy link

itopt commented May 18, 2018

Hello!
In version 1.9, I had no problem getting the FormValue in http request.
After upgrading to version Go 1.10 of FormValue is empty. Did I find the error? in module:
mine/multipart/formdata.go
before:
_, hasContentTypeHeader := p.Header["Content-Type"]
if !hasContentTypeHeader && filename == ""
after
_, hasContentTypeHeader := p.Header["Content-Type"]
if hasContentTypeHeader && filename == "" // del !
began to work as I need

@davecheney
Copy link
Contributor

Thank you for raising this issue. Unlike many projects on GitHub, the Go project does not use its bug tracker for general discussion or asking questions. We only use our bug tracker for tracking bugs and tracking proposals going through the Proposal Process.

Please see https://golang.org/wiki/Questions for good places to ask questions.

@golang golang locked and limited conversation to collaborators May 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants