|
@ -9,7 +9,6 @@ import ( |
|
|
"github.com/matrix-org/go-neb/plugin" |
|
|
"github.com/matrix-org/go-neb/plugin" |
|
|
"github.com/matrix-org/go-neb/types" |
|
|
"github.com/matrix-org/go-neb/types" |
|
|
"net/http" |
|
|
"net/http" |
|
|
"strconv" |
|
|
|
|
|
"strings" |
|
|
"strings" |
|
|
) |
|
|
) |
|
|
type guggyQuery struct { |
|
|
type guggyQuery struct { |
|
@ -101,7 +100,7 @@ func (s *guggyService) text2gifGuggy(querySentence string) (*guggyGifResult, err |
|
|
|
|
|
|
|
|
reader := bytes.NewReader(reqBody) |
|
|
reader := bytes.NewReader(reqBody) |
|
|
|
|
|
|
|
|
req, err := http.NewRequest("POST", "http://text2gif.guggy.com/guggify", reader) |
|
|
|
|
|
|
|
|
req, err := http.NewRequest("POST", "https://text2gif.guggy.com/guggify", reader) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
log.Error(err) |
|
|
log.Error(err) |
|
|
return nil, err |
|
|
return nil, err |
|
|