mirror of
https://github.com/golang/go
synced 2024-11-25 12:57:58 -07:00
codereview: discard \r characters (sigh)
R=r https://golang.org/cl/157041
This commit is contained in:
parent
bae4f5085e
commit
60df923916
@ -1421,6 +1421,8 @@ def MySend(request_path, payload=None,
|
|||||||
f = self.opener.open(req)
|
f = self.opener.open(req)
|
||||||
response = f.read()
|
response = f.read()
|
||||||
f.close()
|
f.close()
|
||||||
|
# Translate \r\n into \n, because Rietveld doesn't.
|
||||||
|
response = response.replace('\r\n', '\n')
|
||||||
return response
|
return response
|
||||||
except urllib2.HTTPError, e:
|
except urllib2.HTTPError, e:
|
||||||
if tries > 3:
|
if tries > 3:
|
||||||
|
Loading…
Reference in New Issue
Block a user