Revert "make forgejo work with backblaze b2"

This reverts commit 96667b20ff.
This commit is contained in:
Charlotte 🦝 Delenk 2023-04-12 08:59:27 +01:00
parent a81ce65ce6
commit 2db40f063c
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 0 additions and 16 deletions

View file

@ -64,8 +64,5 @@ in
maintainers = with maintainers; [ma27];
};
};
forgejo = prev.forgejo.overrideAttrs (prev: {
patches = prev.patches or [] ++ [./forgejo.patch];
});
}
// nix-packages.packages.${system}

View file

@ -1,13 +0,0 @@
diff --git a/modules/storage/minio.go b/modules/storage/minio.go
index 8cc06bc..9ad9f46 100644
--- a/modules/storage/minio.go
+++ b/modules/storage/minio.go
@@ -142,7 +142,7 @@ func (m *MinioStorage) Save(path string, r io.Reader, size int64) (int64, error)
m.buildMinioPath(path),
r,
size,
- minio.PutObjectOptions{ContentType: "application/octet-stream"},
+ minio.PutObjectOptions{ContentType: "application/octet-stream", SendContentMd5: true},
)
if err != nil {
return 0, convertMinioErr(err)