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 (
|
import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"mime"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
@ -18,6 +19,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
// Register .apk MIME type
|
||||||
|
mime.AddExtensionType(".apk", "application/vnd.android.package-archive")
|
||||||
|
|
||||||
// Initialize Database
|
// Initialize Database
|
||||||
dbPath := os.Getenv("DATABASE_URL")
|
dbPath := os.Getenv("DATABASE_URL")
|
||||||
if dbPath == "" {
|
if dbPath == "" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue