aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/install/install.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/install/install.zig b/src/install/install.zig
index 8ae032022..6c00ffe76 100644
--- a/src/install/install.zig
+++ b/src/install/install.zig
@@ -199,7 +199,7 @@ const NetworkTask = struct {
scope: *const Npm.Registry.Scope,
loaded_manifest: ?Npm.PackageManifest,
) !void {
- this.url_buf = try std.fmt.allocPrint(allocator, "{s}://{s}/{s}/{s}", .{ scope.url.displayProtocol(), scope.url.displayHostname(), strings.trim(scope.url.path, "/"), name });
+ this.url_buf = try std.fmt.allocPrint(allocator, "{s}://{s}:{d}/{s}/{s}", .{ scope.url.displayProtocol(), scope.url.displayHostname(), scope.url.getPortAuto(), strings.trim(scope.url.path, "/"), name });
var last_modified: string = "";
var etag: string = "";
if (loaded_manifest) |manifest| {