summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2011-03-16 19:19:15 -0700
committerShawn O. Pearce <spearce@spearce.org>2011-04-01 17:40:34 -0400
commit58ed0cb840b29139483ce3b499354a6e5669498b (patch)
treea6fc0fd15c11dbf00099225e055d33d9a2cd06de /org.eclipse.jgit.test
parent64b524e3ca3d1f66edaa49eda2d8863ddca779b5 (diff)
downloadjgit-58ed0cb840b29139483ce3b499354a6e5669498b.tar.gz
jgit-58ed0cb840b29139483ce3b499354a6e5669498b.zip
smart HTTP: Return errors inside payload
When the client is clearly making a smart HTTP request to our smart HTTP server, return any errors like RepositoryNotFoundException or ServiceNotEnabledException inside of the payload as a Git level ERR message, rather than an HTTP error code. This prevents the C Git command line client from retrying a failed "$URL/info/refs?service=git-upload-pack" request without the smart service URL, only to fail again with "403 Forbidden" when the dumb as-is service has been disabled by the server configuration, or is unavailable because the repository is not on the local filesystem. Change-Id: I57e8756d5026e885e0ca615979bfcd729703be6c Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.test')
0 files changed, 0 insertions, 0 deletions