Show More
@@ -84,7 +84,11 b' def request(host, path, show):' | |||||
84 | b"%s: %s\n" |
|
84 | b"%s: %s\n" | |
85 | % (h.encode('ascii'), response.getheader(h).encode('ascii')) |
|
85 | % (h.encode('ascii'), response.getheader(h).encode('ascii')) | |
86 | ) |
|
86 | ) | |
87 |
if |
|
87 | if headeronly: | |
|
88 | # still read the body to prevent windows to be unhappy about that | |||
|
89 | # (this might some flakyness in test-hgweb-filelog.t on Windows) | |||
|
90 | data = response.read() | |||
|
91 | else: | |||
88 | stdout.write(b'\n') |
|
92 | stdout.write(b'\n') | |
89 | data = response.read() |
|
93 | data = response.read() | |
90 |
|
94 | |||
@@ -112,6 +116,9 b' def request(host, path, show):' | |||||
112 | if twice and response.getheader('ETag', None): |
|
116 | if twice and response.getheader('ETag', None): | |
113 | tag = response.getheader('ETag') |
|
117 | tag = response.getheader('ETag') | |
114 |
|
118 | |||
|
119 | # further try to please the windows-flakyness deity | |||
|
120 | conn.close() | |||
|
121 | ||||
115 | return response.status |
|
122 | return response.status | |
116 |
|
123 | |||
117 |
|
124 |
General Comments 0
You need to be logged in to leave comments.
Login now