Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zig fetch error: unrecognized 'Content-Type' header: 'application/zip' #19748

Closed
sytranvn opened this issue Apr 23, 2024 · 2 comments
Closed
Labels
bug Observed behavior contradicts documented or intended behavior

Comments

@sytranvn
Copy link

Zig Version

0.12.0

Steps to Reproduce and Observed Behavior

I think this is more like a feature request than a bug.

This works

zig fetch --save https://github.com/kubkon/zig-yaml/archive/refs/heads/main.tar.gz

But this does not.

zig fetch --save https://github.com/kubkon/zig-yaml/archive/refs/heads/main.zip
error: unrecognized 'Content-Type' header: 'application/zip'

Expected Behavior

Zig can fetch zip archive without error since not every published packages are tar.gz
Screenshot 2024-04-23 at 17 53 11

@sytranvn sytranvn added the bug Observed behavior contradicts documented or intended behavior label Apr 23, 2024
@tauoverpi
Copy link
Sponsor Contributor

tauoverpi commented Apr 23, 2024

note #19729 implements this and is a duplicate of #17408

@sytranvn
Copy link
Author

Thanks, closing this because duplicated

@Vexu Vexu closed this as not planned Won't fix, can't repro, duplicate, stale Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

3 participants