File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ export default class TarballFetcher extends BaseFetcher {
229229 const registry = this . config . registries [ this . registry ] ;
230230
231231 try {
232- const headers = this . requestHeaders ( this . reference ) ;
232+ const headers = this . requestHeaders ( ) ;
233233 return await registry . request (
234234 this . reference ,
235235 {
@@ -276,10 +276,10 @@ export default class TarballFetcher extends BaseFetcher {
276276 }
277277 }
278278
279- requestHeaders ( requestUrl : string ) : { [ string ] : string } {
279+ requestHeaders ( ) : { [ string ] : string } {
280280 const registry = this . config . registries [ this . registry ] ;
281281 const config = registry . config ;
282- const requestParts = urlParts ( requestUrl ) ;
282+ const requestParts = urlParts ( this . reference ) ;
283283 return Object . keys ( config ) . reduce ( ( headers , option ) => {
284284 const parts = option . split ( ':' ) ;
285285 if ( parts . length === 3 && parts [ 1 ] === '_header' ) {
You can’t perform that action at this time.
0 commit comments