File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,13 +25,20 @@ Remote.lookup = lookupWrapper(Remote);
2525 * @async
2626 * @param {Enums.DIRECTION } direction The direction for the connection
2727 * @param {RemoteCallbacks } callbacks The callback functions for the connection
28+ * @param {ProxyOptions } proxyOpts Proxy settings
29+ * @param {Array[String] } customHeaders extra HTTP headers to use
2830 * @param {Function } callback
2931 * @return {Number } error code
3032 */
31- Remote . prototype . connect = function ( direction , callbacks ) {
33+ Remote . prototype . connect = function (
34+ direction ,
35+ callbacks ,
36+ customHeaders
37+ ) {
3238 callbacks = normalizeOptions ( callbacks , NodeGit . RemoteCallbacks ) ;
39+ customHeaders = customHeaders || [ ] ;
3340
34- return connect . call ( this , direction , callbacks ) ;
41+ return connect . call ( this , direction , callbacks , customHeaders ) ;
3542} ;
3643
3744/**
You can’t perform that action at this time.
0 commit comments