(location: string)
| 256 | } |
| 257 | |
| 258 | function parseLocation(location: string) { |
| 259 | if (location.startsWith("/")) { |
| 260 | return `${proto}://${imageHost}${location}`; |
| 261 | } |
| 262 | |
| 263 | return location; |
| 264 | } |
| 265 | |
| 266 | let location = createUploadResponse.headers.get("location") ?? `/v2${imageRepositoryPath}/blobs/uploads/${uploadId}`; |
| 267 | const maxToWrite = Math.min(maxChunkLength, totalLayerSize); |