net/http/cgi: QUERY_STRING not used when REQUEST_URI is set (Tomcat) #54961
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Compile on Debian GNU/Linux 11 (bullseye) with Intel CPU
Run on Raspbian GNU/Linux 10 (buster) with Armv7 (Raspberry Pi 3 Model B)
go env
OutputWhat did you do?
I created a CGI program which parse GET Parameters with
net/http#Request.ParseForm
.On Apache, that works.
On Tomcat, it doesn't.
The reason is a environment variable "REQUEST_URI" doesn't include parameters on Tomcat, I guess.
Environment variables:
I checked the source code of this problem. (
net/http/cgi/child.go
)QUERY_STRING is used only when REQUEST_URI is blank. (Am I right?)
The text was updated successfully, but these errors were encountered: