]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgo/go/net/http/response.go
libgo: Update to current sources.
[thirdparty/gcc.git] / libgo / go / net / http / response.go
index 945ecd8a4b04dbb755ac3f9909041521488d28f0..92d2f499839946b63a4d728aedbd7ec9d7651f4a 100644 (file)
@@ -107,7 +107,6 @@ func ReadResponse(r *bufio.Reader, req *Request) (resp *Response, err error) {
        resp = new(Response)
 
        resp.Request = req
-       resp.Request.Method = strings.ToUpper(resp.Request.Method)
 
        // Parse the first line of the response.
        line, err := tp.ReadLine()
@@ -188,11 +187,6 @@ func (r *Response) ProtoAtLeast(major, minor int) bool {
 //
 func (r *Response) Write(w io.Writer) error {
 
-       // RequestMethod should be upper-case
-       if r.Request != nil {
-               r.Request.Method = strings.ToUpper(r.Request.Method)
-       }
-
        // Status line
        text := r.Status
        if text == "" {