fix http push 401 and 500 with some git clients

### This patch fix:

Some git clients(eclipse egit, some git version..) report `http 401, rpc failed` and don't ask user for username & password if server return `true` on `GET /myrepo.git/info/refs?service=git-receive-pack` but `false` on `POST /myrepo.git/git-receive-pack`. This cause git client do `Counting objects` first and then ask you for username & password or report `http 401, rpc failed`. **It should ask for username & password first and then `Counting objects` ?**

When push with eclipse egit in windows, Server may response with 500 error cause of `invalid byte sequence in UTF-8` .