Skip to content

Commit

Permalink
Remove requestUrl argument from requestHeaders method
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavin001 committed Dec 3, 2018
1 parent aafe049 commit ed76774
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fetchers/tarball-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export default class TarballFetcher extends BaseFetcher {
const registry = this.config.registries[this.registry];

try {
const headers = this.requestHeaders(this.reference);
const headers = this.requestHeaders();
return await registry.request(
this.reference,
{
Expand Down Expand Up @@ -276,10 +276,10 @@ export default class TarballFetcher extends BaseFetcher {
}
}

requestHeaders(requestUrl: string): {[string]: string} {
requestHeaders(): {[string]: string} {
const registry = this.config.registries[this.registry];
const config = registry.config;
const requestParts = urlParts(requestUrl);
const requestParts = urlParts(this.reference);
return Object.keys(config).reduce((headers, option) => {
const parts = option.split(':');
if (parts.length === 3 && parts[1] === '_header') {
Expand Down

0 comments on commit ed76774

Please sign in to comment.