/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/_pycurl.py

(Andrew Bennetts, Robert Collins) Add test_http.RecordingServer, and use it to
test HttpTransport._post.

Show diffs side-by-side

added added

removed removed

Lines of Context:
218
218
        # There's no way in http/1.0 to say "must revalidate"; we don't want
219
219
        # to force it to always retrieve.  so just turn off the default Pragma
220
220
        # provided by Curl.
 
221
        # Also, we override the Expect: header so that pycurl will send the POST
 
222
        # body immediately.
221
223
        headers = ['Cache-control: max-age=0',
222
224
                   'Pragma: no-cache',
223
 
                   'Connection: Keep-Alive']
 
225
                   'Connection: Keep-Alive',
 
226
                   'Expect: ',]
224
227
        ## curl.setopt(pycurl.VERBOSE, 1)
225
228
        # TODO: maybe include a summary of the pycurl version
226
229
        ua_str = 'bzr/%s (pycurl)' % (bzrlib.__version__,)