[PATCH 4 of 6] lfs: add server side support for the Batch API
Yuya Nishihara
yuya at tcha.org
Thu Mar 29 08:27:58 EDT 2018
On Mon, 19 Mar 2018 00:08:27 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1521265677 14400
> # Sat Mar 17 01:47:57 2018 -0400
> # Node ID a21db2355b92a6725ec51cd853d44a511a569bb7
> # Parent b3d23eed96ea829a4b201f6857cb3195fc308aca
> lfs: add server side support for the Batch API
> +from . import (
> + blobstore,
> + pointer,
> +)
Dropped unused import.
> + try:
> + verifies = store.verify(oid)
> + except IOError as inst:
> + if inst.errno != errno.ENOENT:
> + rsp['error'] = {
> + 'code': 500,
> + 'message': e.strerror or 'Internal Server Server'
s/e/inst/
> --- a/mercurial/hgweb/request.py
> +++ b/mercurial/hgweb/request.py
> @@ -325,6 +325,9 @@ def parserequestfromenv(env, reponame=No
> if 'CONTENT_LENGTH' in env and 'HTTP_CONTENT_LENGTH' not in env:
> headers['Content-Length'] = env['CONTENT_LENGTH']
>
> + if 'CONTENT_TYPE' in env and 'HTTP_CONTENT_TYPE' not in env:
> + headers['Content-Type'] = env['CONTENT_TYPE']
Dropped this as it is already in.
More information about the Mercurial-devel
mailing list