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\n:v\n\n") r, err := http.ReadRequest(bufio.NewReader(bytes.NewReader(data))) if err != nil { return } fmt.Printf("%q\n", r.Header.Get("")) }
prints:
"v"
As per RFC 7230 field-name is a token, tokens consist of one or more chars.
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/11242 mentions this issue.
Sorry, something went wrong.
626188d
No branches or pull requests
The following program:
prints:
As per RFC 7230 field-name is a token, tokens consist of one or more chars.
go version devel +a1fe3b5 Sat Jun 13 04:33:26 2015 +0000 linux/amd64
The text was updated successfully, but these errors were encountered: