Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a more performant regexp that matches the smart protocol documentation at https://git-scm.com/docs/http-protocol#_smart_server_response. In particular: > Clients MUST validate the first five bytes of the response entity > matches the regex ^[0-9a-f]{4}#. If this test fails, clients MUST NOT > continue. and: > Clients MUST verify the first pkt-line is # service=$servicename. > Servers MUST set $servicename to be the request parameter value. Servers > SHOULD include an LF at the end of this line. Clients MUST ignore an LF > at the end of the line.
- Loading branch information