LfsProtocolServlet: Always include message in error response
If the message is not sent, the client shows: Unable to parse HTTP response for POST http://admin@localhost:8080/test-project/info/lfs/objects/batch Change-Id: I8b72d1aded2bcd41b7389676e2373034625a1379 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
parent
0a86b03eb4
commit
de89b7d040
|
@ -149,7 +149,8 @@ protected void doPost(HttpServletRequest req, HttpServletResponse res)
|
|||
try {
|
||||
repo = getLargeFileRepository(request, path);
|
||||
if (repo == null) {
|
||||
res.setStatus(SC_SERVICE_UNAVAILABLE);
|
||||
sendError(res, w, SC_SERVICE_UNAVAILABLE,
|
||||
"LFS is not available"); //$NON-NLS-1$
|
||||
} else {
|
||||
res.setStatus(SC_OK);
|
||||
TransferHandler handler = TransferHandler
|
||||
|
|
Loading…
Reference in New Issue