We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following program:
package main import ( "bufio" "bytes" "fmt" "net/http" ) func main() { data := []byte("GET / HTTP/0.0\nh:\n 0 \n\n") r, err := http.ReadRequest(bufio.NewReader(bytes.NewReader(data))) if err != nil { return } fmt.Printf("%q\n", r.Header.Get("h")) }
prints:
"0 "
Header values must be trimmed.
go version devel +a1fe3b5 Sat Jun 13 04:33:26 2015 +0000 linux/amd64
The text was updated successfully, but these errors were encountered:
CL https://golang.org/cl/15683 mentions this issue.
Sorry, something went wrong.
6f77278
No branches or pull requests
The following program:
prints:
Header values must be trimmed.
go version devel +a1fe3b5 Sat Jun 13 04:33:26 2015 +0000 linux/amd64
The text was updated successfully, but these errors were encountered: