Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
feat: auto detect whether using old site for punch
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 committed Dec 25, 2021
1 parent 89f6de9 commit d9ea747
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module main

go 1.17

require github.com/yin1999/healthreport v1.1.4-0.20211217001741-2699a5223150
require github.com/yin1999/healthreport v1.1.4-0.20211225103849-3709f508e060

require github.com/google/go-querystring v1.1.0 // indirect
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM=
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
github.com/yin1999/healthreport v1.1.4-0.20211217001741-2699a5223150 h1:fJVHbgiA/zlP9I+3wV4fUko251dnjhXX0AqkmGa09ss=
github.com/yin1999/healthreport v1.1.4-0.20211217001741-2699a5223150/go.mod h1:QBX/b/LmKlkJoaNiYNdczSedBK+6tmtHmczTmMwUu2Y=
github.com/yin1999/healthreport v1.1.4-0.20211225103849-3709f508e060 h1:Y2MTL29p1XRjdWPwJgdmj7If0DW+8WLHpDRTMyckILo=
github.com/yin1999/healthreport v1.1.4-0.20211225103849-3709f508e060/go.mod h1:QBX/b/LmKlkJoaNiYNdczSedBK+6tmtHmczTmMwUu2Y=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
3 changes: 0 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ func init() {
if os.Getenv("INSECURE") == "1" {
client.SetSslVerify(false)
}
if os.Getenv("OLD_SITE") == "1" {
client.SetPunchSite(true)
}
}

func punch(payload string) error {
Expand Down

0 comments on commit d9ea747

Please sign in to comment.