Skip to content

Commit f8edc01

Browse files
authored
Merge pull request #731 from nyaruka/attachment-filetype
Update filetype package to v1.1.3
2 parents 019d0e7 + d7d3b5b commit f8edc01

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Diff for: attachments.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import (
1010
"net/url"
1111
"path/filepath"
1212

13+
"github.com/h2non/filetype"
1314
"github.com/nyaruka/courier/utils"
1415
"github.com/nyaruka/gocommon/httpx"
1516
"github.com/pkg/errors"
16-
"gopkg.in/h2non/filetype.v1"
1717
)
1818

1919
const (

Diff for: backends/rapidpro/msg.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515

1616
"github.com/buger/jsonparser"
1717
"github.com/gomodule/redigo/redis"
18+
filetype "github.com/h2non/filetype"
1819
"github.com/lib/pq"
1920
"github.com/nyaruka/courier"
2021
"github.com/nyaruka/courier/queue"
@@ -23,7 +24,6 @@ import (
2324
"github.com/nyaruka/gocommon/uuids"
2425
"github.com/nyaruka/null/v3"
2526
"github.com/pkg/errors"
26-
filetype "gopkg.in/h2non/filetype.v1"
2727
)
2828

2929
// MsgDirection is the direction of a message

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ require (
1212
github.com/golang-jwt/jwt/v5 v5.2.1
1313
github.com/gomodule/redigo v1.9.2
1414
github.com/gorilla/schema v1.2.1
15+
github.com/h2non/filetype v1.1.3
1516
github.com/jmoiron/sqlx v1.3.5
1617
github.com/lib/pq v1.10.9
1718
github.com/nyaruka/ezconf v0.3.0
@@ -26,7 +27,6 @@ require (
2627
golang.org/x/exp v0.0.0-20240314144324-c7f7c6466f7f
2728
golang.org/x/mod v0.16.0
2829
gopkg.in/go-playground/validator.v9 v9.31.0
29-
gopkg.in/h2non/filetype.v1 v1.0.5
3030
)
3131

3232
require (

Diff for: go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ github.com/gorilla/schema v1.2.1 h1:tjDxcmdb+siIqkTNoV+qRH2mjYdr2hHe5MKXbp61ziM=
4646
github.com/gorilla/schema v1.2.1/go.mod h1:Dg5SSm5PV60mhF2NFaTV1xuYYj8tV8NOPRo4FggUMnM=
4747
github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY=
4848
github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY=
49+
github.com/h2non/filetype v1.1.3 h1:FKkx9QbD7HR/zjK1Ia5XiBsq9zdLi5Kf3zGyFTAFkGg=
50+
github.com/h2non/filetype v1.1.3/go.mod h1:319b3zT68BvV+WRj7cwy856M2ehB3HqNOt6sy1HndBY=
4951
github.com/jellydator/ttlcache/v3 v3.2.0 h1:6lqVJ8X3ZaUwvzENqPAobDsXNExfUJd61u++uW8a3LE=
5052
github.com/jellydator/ttlcache/v3 v3.2.0/go.mod h1:hi7MGFdMAwZna5n2tuvh63DvFLzVKySzCVW6+0gA2n4=
5153
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
@@ -151,8 +153,6 @@ gopkg.in/go-playground/assert.v1 v1.2.1 h1:xoYuJVE7KT85PYWrN730RguIQO0ePzVRfFMXa
151153
gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE=
152154
gopkg.in/go-playground/validator.v9 v9.31.0 h1:bmXmP2RSNtFES+bn4uYuHT7iJFJv7Vj+an+ZQdDaD1M=
153155
gopkg.in/go-playground/validator.v9 v9.31.0/go.mod h1:+c9/zcJMFNgbLvly1L1V+PpxWdVbfP1avr/N00E2vyQ=
154-
gopkg.in/h2non/filetype.v1 v1.0.5 h1:CC1jjJjoEhNVbMhXYalmGBhOBK2V70Q1N850wt/98/Y=
155-
gopkg.in/h2non/filetype.v1 v1.0.5/go.mod h1:M0yem4rwSX5lLVrkEuRRp2/NinFMD5vgJ4DlAhZcfNo=
156156
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
157157
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
158158
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=

0 commit comments

Comments
 (0)