Skip to content

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

@sytranvn

Description

@sytranvn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions