Browse Source

Merge "Serve 403 from RepositoryFilter on ServiceMayNotContinueException"

stable-2.1
Shawn Pearce 13 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
3c29bf0941
  1. 2
      org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/RepositoryFilter.java

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

@ -143,7 +143,7 @@ public class RepositoryFilter implements Filter {
res.sendError(SC_UNAUTHORIZED);
return;
} catch (ServiceMayNotContinueException e) {
sendError(req, res, SC_INTERNAL_SERVER_ERROR, e.getMessage());
sendError(req, res, SC_FORBIDDEN, e.getMessage());
return;
}
try {

Loading…
Cancel
Save