fix: --token now works with --url, add --header for custom HTTP headers#16
Merged
thxCode merged 2 commits intogpustack:mainfrom Jan 6, 2026
Merged
fix: --token now works with --url, add --header for custom HTTP headers#16thxCode merged 2 commits intogpustack:mainfrom
thxCode merged 2 commits intogpustack:mainfrom
Conversation
Contributor
Author
|
Usage: # Single custom header
gguf-parser --url <URL> --header "Authorization: Basic <base64>"
# Multiple headers
gguf-parser --url <URL> --header "X-Key: value1" --header "X-Other: value2"
# Combined with --token (both are sent)
gguf-parser --url <URL> --token "bearer-token" --header "X-Custom: value"Test: # Verify headers are sent (use --debug to inspect requests)
gguf-parser --debug --skip-cache --url "<URL>" --header "Authorization: Basic dXNlcjpwYXNz"
# Expected output shows header in request:
# > Authorization: Basic ████████████████████
# (Values are masked in debug output for security) |
Contributor
Author
|
@thxCode need a review, thanks. |
Collaborator
|
@2niuhe, please also update the
You can paste the output of |
Contributor
Author
|
@thxCode README updated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add --header flag for custom HTTP headers
Adds support for custom HTTP headers when fetching remote GGUF files, enabling Basic Auth and other authentication methods for private registries.
Fix bug: --token cannot work with --url
resolve #15