Use gorilla readMessage and writeMessage instead of just an io.Copy
This commit is contained in:
parent
e8e8b41eed
commit
52f16e11a8
3 changed files with 21 additions and 14 deletions
2
vendor/github.com/vulcand/oxy/utils/netutils.go
generated
vendored
2
vendor/github.com/vulcand/oxy/utils/netutils.go
generated
vendored
|
@ -132,7 +132,7 @@ func RemoveHeaders(headers http.Header, names ...string) {
|
|||
}
|
||||
|
||||
// Parse the MIME media type value of a header.
|
||||
func GetHeaderMediaType(headers http.Header, name string) (string, error) {
|
||||
func GetHeaderMediaType(headers http.Header, name string) (string, error) {
|
||||
mediatype, _, err := mime.ParseMediaType(headers.Get(name))
|
||||
return mediatype, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue