]> source.dussan.org Git - jgit.git/commitdiff
Show error message for non-git clients 22/103722/1
authorMasaya Suzuki <masayasuzuki@google.com>
Fri, 25 Aug 2017 22:51:03 +0000 (15:51 -0700)
committerMasaya Suzuki <masayasuzuki@google.com>
Fri, 25 Aug 2017 22:52:59 +0000 (15:52 -0700)
Change-Id: I56435d955348eb9acef6603d868f9add1c8781c9
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitSmartHttpTools.java

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