gabrielcsapo / node-git-server

🎡 A configurable git server written in Node.js
https://gabrielcsapo.github.io/node-git-server
MIT License
253 stars 73 forks source link

pass headers into authenticate #49

Closed pyramation closed 5 years ago

pyramation commented 5 years ago

Would be great if the authenticate method had access to request headers. Looks like it wouldn't be terribly hard since the req object is already right there: https://github.com/gabrielcsapo/node-git-server/blob/62b1cb6079cad19b51d4ca7f7d85c48bcc22ed5d/lib/git.js#L305

gabrielcsapo commented 5 years ago

Thanks for looking into the PR @pyramation, it is released in 0.6.0 🚀