Skip to content

Commit

Permalink
Use correct mime package in input.go
Browse files Browse the repository at this point in the history
This commit updates the import for the `mime` package to use the local
utility which handles the case where `mime.TypeByExtension` returns an
empty string.

Fixes #2032
  • Loading branch information
aron committed Nov 4, 2024
1 parent 1aa30df commit 9f532ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/predict/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package predict

import (
"fmt"
"mime"
"os"
"path/filepath"
"strings"

"github.com/mitchellh/go-homedir"
"github.com/vincent-petithory/dataurl"

"github.com/replicate/cog/pkg/util/mime"
)

type Input struct {
Expand Down

0 comments on commit 9f532ac

Please sign in to comment.