~snappy-dev/ubuntu-system-image/snappy

« back to all changes in this revision

Viewing changes to systemimage/testing/helpers.py

  • Committer: Michael Vogt
  • Date: 2014-09-26 09:27:51 UTC
  • Revision ID: michael.vogt@ubuntu.com-20140926092751-nm68mjz2n6t0fuqm
port to the pycurl Multi interface and make progress reporting much more accurate

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
            except ConnectionResetError:
118
118
                super().handle_one_request()
119
119
 
 
120
        def do_HEAD(self):
 
121
            # just tell the client we have the magic file
 
122
            if self.path == '/user-agent.txt':
 
123
                self.send_response(200)
 
124
                self.end_headers()
 
125
            else:
 
126
                super().do_HEAD()
 
127
 
120
128
        def do_GET(self):
121
129
            # If we requested the magic 'user-agent.txt' file, send back the
122
130
            # value of the User-Agent header.  Otherwise, vend as normal.