# Package: support gitlab tarball urls · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/8bbc906b59a239a61406b1f5451af8ffea81cd41)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 8bbc906b59a239a61406b1f5451af8ffea81cd41

Requested commit: 8bbc906b59a239a61406b1f5451af8ffea81cd41

Commit: 8bbc906b59a239a61406b1f5451af8ffea81cd41

Tree: 65fbc7659269829c5bfa8ffa28491a6cde0b1104

Author: Travis Staloch

Committer: Andrew Kelley

## Message

```
Package: support gitlab tarball urls

Allows the package manager to download gitlab tarballs from urls such as
https://gitlab.com/<namespace>/<project>/-/archive/<sha>/<project>-<sha>.tar.gz

Such http requests have headers Content-Type=application/octet-stream
and Content-Disposition='attachment; filename="<project>-<sha>.tar.gz"'.
The package manager doesn't yet support these headers. This patch
doesn't attempt to properly parse the content-disposition header.
Instead it checks that it starts with 'attachment;' and ends with
'.tar.gz"'.

```

## Parents

- [4ba61a219136ccf81d8dee6317af597244c0db1e](https://git.cafe/gitcafe/zig/commit/4ba61a219136ccf81d8dee6317af597244c0db1e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/8bbc906b59a239a61406b1f5451af8ffea81cd41?format=markdown)
