File tree 1 file changed +3
-13
lines changed
1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -712,25 +712,15 @@ var Client = module.exports = function (config) {
712
712
headers . host = queryAndUrl . host || host
713
713
714
714
var options = {
715
+ agent : agent ,
715
716
host : headers . host ,
716
717
port : port ,
717
718
path : path ,
718
719
method : method ,
719
720
headers : headers ,
720
721
ca : ca ,
721
- family : this . config . family
722
- }
723
-
724
- // agent will be handled differently soon: https://github.com/octokit/node-github/issues/656
725
- /* istanbul ignore if */
726
- if ( agent ) {
727
- options . agent = agent
728
- }
729
-
730
- // certificates will be handled differently soon: https://github.com/octokit/node-github/issues/656
731
- /* istanbul ignore if */
732
- if ( this . config . rejectUnauthorized !== undefined ) {
733
- options . rejectUnauthorized = this . config . rejectUnauthorized
722
+ family : this . config . family ,
723
+ rejectUnauthorized : this . config . rejectUnauthorized
734
724
}
735
725
736
726
debug ( 'REQUEST:' , options )
You can’t perform that action at this time.
0 commit comments