~ubuntu-branches/ubuntu/saucy/golang/saucy

« back to all changes in this revision

Viewing changes to src/pkg/net/http/transfer.go

  • Committer: Package Import Robot
  • Author(s): Ondřej Surý, Ondřej Surý, Michael Stapelberg
  • Date: 2012-06-28 12:14:15 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20120628121415-w1b0076ixkarr1ml
[ Ondřej Surý ]
* Imported Upstream version 1.0.2
* Update Vcs fields to reflect new git repository location
* Kill get-orig-source, since 1.0.0, the tarballs can be downloaded
  from webpage

[ Michael Stapelberg ]
* golang-mode: use debian-pkg-add-load-path-item (Closes: #664802)
* Add manpages (Closes: #632964)
* Use updated pt.po from Pedro Ribeiro (Closes: #674958)

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
                        }
72
72
                }
73
73
        case *Response:
74
 
                t.Method = rr.Request.Method
 
74
                if rr.Request != nil {
 
75
                        t.Method = rr.Request.Method
 
76
                }
75
77
                t.Body = rr.Body
76
78
                t.BodyCloser = rr.Body
77
79
                t.ContentLength = rr.ContentLength
79
81
                t.TransferEncoding = rr.TransferEncoding
80
82
                t.Trailer = rr.Trailer
81
83
                atLeastHTTP11 = rr.ProtoAtLeast(1, 1)
82
 
                t.ResponseToHEAD = noBodyExpected(rr.Request.Method)
 
84
                t.ResponseToHEAD = noBodyExpected(t.Method)
83
85
        }
84
86
 
85
87
        // Sanitize Body,ContentLength,TransferEncoding