/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/_urllib.py

Merge bzr.dev and resolve conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
 
134
134
    def _post(self, body_bytes):
135
135
        abspath = self._remote_path('.bzr/smart')
136
 
        response = self._perform(Request('POST', abspath, body_bytes))
 
136
        # We include 403 in accepted_errors so that send_http_smart_request can
 
137
        # handle a 403.  Otherwise a 403 causes an unhandled TransportError.
 
138
        response = self._perform(Request('POST', abspath, body_bytes,
 
139
                                         accepted_errors=[200, 403]))
137
140
        code = response.code
138
141
        data = handle_response(abspath, code, response.info(), response)
139
142
        return code, data