DescriptionCosmetic bug or compliance fixes in http.Response.
(1) http.Response must close resp.Body after writing.
(2) Case when resp.Body != nil and resp.ContentLength = 0 should not be
treated as an error in Response.Write, because this is what
ReadResponse often returns.
(3) Changed body.th to body.hdr for readability.
Patch Set 1 #Patch Set 2 : code review 194084: Cosmetic bug or compliance fixes in http.Response. #Patch Set 3 : code review 194084: Cosmetic bug or compliance fixes in http.Response. #Patch Set 4 : code review 194084: Cosmetic bug or compliance fixes in http.Response. #Patch Set 5 : code review 194084: Cosmetic bug or compliance fixes in http.Response. #MessagesTotal messages: 8
|