summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.http.server/src
diff options
context:
space:
mode:
authorMasaya Suzuki <masayasuzuki@google.com>2017-08-25 15:51:03 -0700
committerMasaya Suzuki <masayasuzuki@google.com>2017-08-25 15:52:59 -0700
commite8d4f2598bb1750a40e202703bc9fbc481650c3f (patch)
treee564ae4e5f020f156afa91859c5c8dab54aead14 /org.eclipse.jgit.http.server/src
parent65b2d0b2d9b2a5fe8df6a82c98a31c366d5887ff (diff)
downloadjgit-e8d4f2598bb1750a40e202703bc9fbc481650c3f.tar.gz
jgit-e8d4f2598bb1750a40e202703bc9fbc481650c3f.zip
Show error message for non-git clients
Change-Id: I56435d955348eb9acef6603d868f9add1c8781c9 Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
Diffstat (limited to 'org.eclipse.jgit.http.server/src')
-rw-r--r--org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitSmartHttpTools.java2
1 files changed, 1 insertions, 1 deletions
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 03c9d8da69..cfe48223da 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);
}
}