##// END OF EJS Templates
lfs: ensure the transfer request is for a known URI...
Matt Harbison -
r37267:9640ccf4 default
parent child Browse files
Show More
@@ -22,6 +22,7 from mercurial import (
22 22 HTTP_OK = hgwebcommon.HTTP_OK
23 23 HTTP_CREATED = hgwebcommon.HTTP_CREATED
24 24 HTTP_BAD_REQUEST = hgwebcommon.HTTP_BAD_REQUEST
25 HTTP_NOT_FOUND = hgwebcommon.HTTP_NOT_FOUND
25 26
26 27 def handlewsgirequest(orig, rctx, req, res, checkperm):
27 28 """Wrap wireprotoserver.handlewsgirequest() to possibly process an LFS
@@ -244,6 +245,10 def _processbasictransfer(repo, req, res
244 245 oid = req.dispatchparts[-1]
245 246 localstore = repo.svfs.lfslocalblobstore
246 247
248 if len(req.dispatchparts) != 4:
249 _sethttperror(res, HTTP_NOT_FOUND)
250 return True
251
247 252 if method == b'PUT':
248 253 checkperm('upload')
249 254
General Comments 0
You need to be logged in to leave comments. Login now