diff options
author | Rutger Broekhoff | 2023-12-30 00:40:10 +0100 |
---|---|---|
committer | Rutger Broekhoff | 2023-12-30 00:40:10 +0100 |
commit | 4f167c0fa991aa9ddb3f0252e23694b3aa6532b1 (patch) | |
tree | 4e2428a853d6697e37c2d5f58f203c13e4c750aa /cmd | |
parent | ce9541e0b0b96630c332c4769e9c7074c249f217 (diff) | |
download | gitolfs3-4f167c0fa991aa9ddb3f0252e23694b3aa6532b1.tar.gz gitolfs3-4f167c0fa991aa9ddb3f0252e23694b3aa6532b1.zip |
URL as string, lesson learned
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/git-lfs-server/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/git-lfs-server/main.go b/cmd/git-lfs-server/main.go index c3f4e91..5e99288 100644 --- a/cmd/git-lfs-server/main.go +++ b/cmd/git-lfs-server/main.go | |||
@@ -73,7 +73,7 @@ func (d SecondDuration) MarshalJSON() ([]byte, error) { | |||
73 | } | 73 | } |
74 | 74 | ||
75 | type batchAction struct { | 75 | type batchAction struct { |
76 | HRef *url.URL `json:"href"` | 76 | HRef string `json:"href"` |
77 | Header map[string]string `json:"header,omitempty"` | 77 | Header map[string]string `json:"header,omitempty"` |
78 | ExpiresIn *SecondDuration `json:"expires_in,omitempty"` | 78 | ExpiresIn *SecondDuration `json:"expires_in,omitempty"` |
79 | ExpiresAt *RFC3339SecondsTime `json:"expires_at,omitempty"` | 79 | ExpiresAt *RFC3339SecondsTime `json:"expires_at,omitempty"` |
@@ -183,7 +183,7 @@ func (h *handler) handleDownloadObject(ctx context.Context, repo string, obj par | |||
183 | Authenticated: &authenticated, | 183 | Authenticated: &authenticated, |
184 | Actions: map[operation]batchAction{ | 184 | Actions: map[operation]batchAction{ |
185 | operationDownload: { | 185 | operationDownload: { |
186 | HRef: presigned, | 186 | HRef: presigned.String(), |
187 | ExpiresIn: &expiresInSeconds, | 187 | ExpiresIn: &expiresInSeconds, |
188 | }, | 188 | }, |
189 | }, | 189 | }, |