Merge pull request #3 from tgxworld/google_code_has_shutdown

Replace package that is no longer available.
This commit is contained in:
Guo Xiang Tan 2016-07-19 11:21:04 +08:00 committed by GitHub
commit cfa7d348a2
1 changed files with 1 additions and 7 deletions

View File

@ -1,12 +1,12 @@
package main package main
import ( import (
"code.google.com/p/go-uuid/uuid"
"crypto/hmac" "crypto/hmac"
"crypto/sha256" "crypto/sha256"
"encoding/base64" "encoding/base64"
"encoding/hex" "encoding/hex"
"fmt" "fmt"
"github.com/pborman/uuid"
"github.com/golang/groupcache/lru" "github.com/golang/groupcache/lru"
"github.com/namsral/flag" "github.com/namsral/flag"
"log" "log"
@ -79,12 +79,6 @@ func main() {
log.Fatal(server.ListenAndServe()) log.Fatal(server.ListenAndServe())
} }
func envOrFlag(name, help string) string {
flag.String(name, "", help)
return ""
}
func redirectIfCookieMissing(handler http.Handler, ssoSecret, cookieSecret, ssoUri, proxyHost string) http.Handler { func redirectIfCookieMissing(handler http.Handler, ssoSecret, cookieSecret, ssoUri, proxyHost string) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
cookie, err := r.Cookie("__discourse_proxy") cookie, err := r.Cookie("__discourse_proxy")