From 04839d5d2e5ac03fe083876776699dc3e85cd7b4 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Sun, 20 Apr 2014 15:24:45 -0400 Subject: [PATCH] Hopefully fixs #54. Use HTTPS --- plugins/beers.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/beers.go b/plugins/beers.go index 67eac15..faf8a28 100644 --- a/plugins/beers.go +++ b/plugins/beers.go @@ -6,16 +6,17 @@ import ( "encoding/json" "errors" "fmt" - "github.com/chrissexton/alepale/bot" "io/ioutil" - "labix.org/v2/mgo" - "labix.org/v2/mgo/bson" "log" "math/rand" "net/http" "strconv" "strings" "time" + + "github.com/chrissexton/alepale/bot" + "labix.org/v2/mgo" + "labix.org/v2/mgo/bson" ) // This is a skeleton plugin to serve as an example and quick copy/paste for new plugins. @@ -298,7 +299,7 @@ type untappdUser struct { func (p *BeersPlugin) pullUntappd() ([]checkin, error) { access_token := "?access_token=" + p.Bot.Config.UntappdToken - baseUrl := "http://api.untappd.com/v4/checkin/recent/" + baseUrl := "https://api.untappd.com/v4/checkin/recent/" url := baseUrl + access_token + "&limit=25"