From e8d4f2598bb1750a40e202703bc9fbc481650c3f Mon Sep 17 00:00:00 2001 From: Masaya Suzuki Date: Fri, 25 Aug 2017 15:51:03 -0700 Subject: [PATCH] Show error message for non-git clients Change-Id: I56435d955348eb9acef6603d868f9add1c8781c9 Signed-off-by: Masaya Suzuki --- .../src/org/eclipse/jgit/http/server/GitSmartHttpTools.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitSmartHttpTools.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitSmartHttpTools.java index 03c9d8da6..cfe48223d 100644 --- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitSmartHttpTools.java +++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitSmartHttpTools.java @@ -201,7 +201,7 @@ public class GitSmartHttpTools { } else { if (httpStatus < 400) ServletUtils.consumeRequestBody(req); - res.sendError(httpStatus); + res.sendError(httpStatus, textForGit); } }