diff options
| author | Travis Staloch <twostepted@gmail.com> | 2023-05-14 18:48:03 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-05-15 22:44:32 -0700 |
| commit | 8bbc906b59a239a61406b1f5451af8ffea81cd41 (patch) | |
| tree | 65fbc7659269829c5bfa8ffa28491a6cde0b1104 /lib/std/array_hash_map.zig | |
| parent | 4ba61a219136ccf81d8dee6317af597244c0db1e (diff) | |
| download | zig-8bbc906b59a239a61406b1f5451af8ffea81cd41.tar.gz zig-8bbc906b59a239a61406b1f5451af8ffea81cd41.zip | |
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"'.
Diffstat (limited to 'lib/std/array_hash_map.zig')
0 files changed, 0 insertions, 0 deletions
