Browse Source

Show error message for non-git clients

Change-Id: I56435d955348eb9acef6603d868f9add1c8781c9
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
stable-4.9
Masaya Suzuki 7 years ago
parent
commit
e8d4f2598b
  1. 2
      org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitSmartHttpTools.java

2
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitSmartHttpTools.java

@ -201,7 +201,7 @@ public class GitSmartHttpTools {
} else { } else {
if (httpStatus < 400) if (httpStatus < 400)
ServletUtils.consumeRequestBody(req); ServletUtils.consumeRequestBody(req);
res.sendError(httpStatus); res.sendError(httpStatus, textForGit);
} }
} }

Loading…
Cancel
Save