Deployment Fix: Ensuring APK format and correct MIME type in backend
This commit is contained in:
parent
59290ca7f6
commit
fffae35a52
1 changed files with 4 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ package main
|
|||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
"mime"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
|
@ -18,6 +19,9 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
// Register .apk MIME type
|
||||
mime.AddExtensionType(".apk", "application/vnd.android.package-archive")
|
||||
|
||||
// Initialize Database
|
||||
dbPath := os.Getenv("DATABASE_URL")
|
||||
if dbPath == "" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue