https://appharbor.com/ returns such header. Native git is able to clone from appharbor. As I understand, it decides what protocol to use inside process_connect_service of transport-helper.c, and it doesn't check headers of response. That why I thought I can fix it like that.