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
import (
"code.google.com/p/go-uuid/uuid"
"crypto/hmac"
"crypto/sha256"
"encoding/base64"
"encoding/hex"
"fmt"
"github.com/pborman/uuid"
"github.com/golang/groupcache/lru"
"github.com/namsral/flag"
"log"
@ -79,12 +79,6 @@ func main() {
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 {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
cookie, err := r.Cookie("__discourse_proxy")