]> source.dussan.org Git - jgit.git/commit
LfsProtocolServlet: Always set the Content-Type header on response 09/79009/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Sat, 13 Aug 2016 07:56:20 +0000 (16:56 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 16 Aug 2016 02:01:20 +0000 (11:01 +0900)
commit0b4751e805e3792403c5e3b39aa4f5555081991d
tree88b33f4c4f5109ad3ab47fd27cfcb00bfd6fe082
parent59b96549a6518876e49bb5dbf1aa2b63e3f759c7
LfsProtocolServlet: Always set the Content-Type header on response

If the Content-Type is not set on error responses, the git-lfs client
does not read the body which contains the error message, and instead
just displays a generic error message.

Also set the charset on the Content-Type header.

Change-Id: I88e6f07f20b622a670e7c5063145dffb8b630aee
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/LfsProtocolServlet.java