~vila/bzr/497274-http-405

Viewing all changes in revision 4908.

  • Committer: Vincent Ladeuil
  • Date: 2009-12-18 14:26:12 UTC
  • Revision ID: v.ladeuil+lp@free.fr-20091218142612-fe2ltuq0wu3o956e
Minimal fix for 497274.

* bzrlib/transport/http/response.py:
(handle_response): Handle 405, may not be the cleanest solution
but the tests pass.

* bzrlib/transport/http/__init__.py:
(SmartClientHTTPMedium.send_http_smart_request): EErk, untested
code is broken code :-/

* bzrlib/tests/test_http.py:
(OnlyGETHEADRequestHandler.parse_request): A dedicated request
handler emulating a restricted server.
(TestGETHEADServer): Test the behaviour of the http clients
against a server that can't reply to POST.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: