~ubuntu-branches/ubuntu/quantal/dulwich/quantal

« back to all changes in this revision

Viewing changes to dulwich/web.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2011-08-07 15:03:44 UTC
  • mfrom: (1.2.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20110807150344-a5w6vkqtfy8fr526
Tags: 0.8.0-1
* New upstream release.
 + Adds support for IPv6 to git:// client. Closes: #631490
 + Fixes use of ~username in git:// URLs. Closes: #631483
* Bump standards version to 3.9.2 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
        write = req.respond(HTTP_OK, 'application/x-%s-advertisement' % service)
170
170
        proto = ReceivableProtocol(StringIO().read, write)
171
171
        handler = handler_cls(backend, [url_prefix(mat)], proto,
172
 
                              stateless_rpc=True, advertise_refs=True)
 
172
                              http_req=req, advertise_refs=True)
173
173
        handler.proto.write_pkt_line('# service=%s\n' % service)
174
174
        handler.proto.write_pkt_line(None)
175
175
        handler.handle()
235
235
        yield req.forbidden('Unsupported service %s' % service)
236
236
        return
237
237
    req.nocache()
238
 
    write = req.respond(HTTP_OK, 'application/x-%s-response' % service)
 
238
    write = req.respond(HTTP_OK, 'application/x-%s-result' % service)
239
239
 
240
240
    input = req.environ['wsgi.input']
241
241
    # This is not necessary if this app is run from a conforming WSGI server.
246
246
    if content_length:
247
247
        input = _LengthLimitedFile(input, int(content_length))
248
248
    proto = ReceivableProtocol(input.read, write)
249
 
    handler = handler_cls(backend, [url_prefix(mat)], proto, stateless_rpc=True)
 
249
    handler = handler_cls(backend, [url_prefix(mat)], proto, http_req=req)
250
250
    handler.handle()
251
251
 
252
252