Skip to content

Add authorization header#271

Merged
NikhilSinha1 merged 6 commits into
mainfrom
nikhil/authorization-header
Jun 25, 2025
Merged

Add authorization header#271
NikhilSinha1 merged 6 commits into
mainfrom
nikhil/authorization-header

Conversation

@NikhilSinha1

@NikhilSinha1 NikhilSinha1 commented Jun 18, 2025

Copy link
Copy Markdown
Contributor

Summary

Add authorization header support to pget. This follows the HTTP convention and drops authorization headers on redirect.

Testing

Make an authenticated request through pget, i.e. to HuggingFace which expects your HF_TOKEN as a Bearer token

Comment thread pkg/download/buffer.go
@NikhilSinha1 NikhilSinha1 merged commit 0ba4185 into main Jun 25, 2025
5 checks passed
@NikhilSinha1 NikhilSinha1 deleted the nikhil/authorization-header branch June 25, 2025 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants