]> source.dussan.org Git - gitea.git/commit
Set Content-Type to text/plain for http status 401
authorLinquize <linquize@yahoo.com.hk>
Sat, 28 Mar 2015 14:30:05 +0000 (22:30 +0800)
committerLinquize <linquize@yahoo.com.hk>
Sat, 28 Mar 2015 14:30:05 +0000 (22:30 +0800)
commitf26f8d5afa8d84e4cf3fde6c956dcf907d7883b5
treee73ded80d63ff676598505228199a9943bf3d588
parent9fb2d49b93022d635147c09bcad7134570979909
Set Content-Type to text/plain for http status 401

This is because git command line shows the failure reason only if Content-Type is text/plain.
modules/middleware/context.go
routers/repo/http.go