Skip to content

Commit 76fb03c

Browse files
author
John Haley
committed
Fix remote tests
1 parent ad097c7 commit 76fb03c

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

lib/remote.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)