mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1320938 - Backout debugging code from 42722bb6b23c. r=dustin
MozReview-Commit-ID: 4bu7ZAEiae1 --HG-- extra : rebase_source : 9e31ea3cdf729811492fe122e445fbaae00b3820
This commit is contained in:
parent
c051e5a3b6
commit
66248ddf5c
@ -394,11 +394,6 @@ class ScriptMixin(PlatformMixin):
|
||||
if parsed_url.scheme in ('http', 'https'):
|
||||
expected_file_size = int(response.headers.get('Content-Length'))
|
||||
|
||||
self.info('Http code: {}'.format(response.getcode()))
|
||||
for k in sorted(response.headers.keys()):
|
||||
if k.lower().startswith('x-amz-') or k in ('Content-Encoding', 'Content-Type', 'via'):
|
||||
self.info('{}: {}'.format(k, response.headers.get(k)))
|
||||
|
||||
file_contents = response.read()
|
||||
obtained_file_size = len(file_contents)
|
||||
self.info('Expected file size: {}'.format(expected_file_size))
|
||||
@ -688,9 +683,8 @@ class ScriptMixin(PlatformMixin):
|
||||
try:
|
||||
function(**kwargs)
|
||||
except zipfile.BadZipfile:
|
||||
# Bug 1306189 - Sometimes a good download turns out to be a
|
||||
# corrupted zipfile. Let's create a signature that is easy to match
|
||||
self.fatal('Check bug 1306189 for details on downloading a truncated zip file.')
|
||||
# Dump the exception and exit
|
||||
self.exception(level=FATAL)
|
||||
|
||||
|
||||
def load_json_url(self, url, error_level=None, *args, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user