Skip to content

Commit

Permalink
Move http.go into new utils package
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed May 10, 2017
1 parent be753b0 commit c60be76
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion handlers/telegram/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/go-errors/errors"
"github.com/nyaruka/courier"
"github.com/nyaruka/courier/handlers"
"github.com/nyaruka/courier/utils"
)

func init() {
Expand Down Expand Up @@ -132,7 +133,7 @@ func resolveFileID(channel courier.Channel, fileID string) (string, error) {
return "", err
}

_, body, err := courier.MakeHTTPRequest(req)
_, body, err := utils.MakeHTTPRequest(req)
if err != nil {
return "", err
}
Expand Down
2 changes: 1 addition & 1 deletion msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func downloadMediaToS3(s *server, msgUUID MsgUUID, mediaURL string) (string, err
if err != nil {
return "", err
}
resp, body, err := MakeHTTPRequest(req)
resp, body, err := utils.MakeHTTPRequest(req)
if err != nil {
return "", err
}
Expand Down
2 changes: 1 addition & 1 deletion http.go → utils/http.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package courier
package utils

import (
"fmt"
Expand Down

0 comments on commit c60be76

Please sign in to comment.