File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
- "fmt"
5
4
"log"
6
5
"net/http"
7
6
"os"
@@ -34,7 +33,7 @@ func main() {
34
33
log .Println ("user: " , u )
35
34
36
35
// and tell the user it is all good:
37
- _ , _ = fmt . Fprintf ( w , "All good, check backend console" )
36
+ _ , _ = w . Write ([] byte ( "All good, check backend console" ) )
38
37
})
39
38
40
39
// Listen address for server, 443 for https as OpenID connect mandates it!
@@ -45,11 +44,11 @@ func main() {
45
44
46
45
// A catch-all dummy handler
47
46
handler := func (w http.ResponseWriter , r * http.Request ) {
48
- _ , _ = fmt . Fprintf ( w , r .Method + " " + r .URL .Path + " \n " )
47
+ _ , _ = w . Write ([] byte ( r .Method + " " + r .URL .Path ) )
49
48
}
50
49
51
- fmt .Println ("Server running on https://localhost" )
52
- fmt .Println (" Visit https://localhost/auth/o8/google" )
50
+ log .Println ("Server running on https://localhost" )
51
+ log .Println (" Visit https://localhost/auth/o8/google" )
53
52
54
53
// This is just example (don't copy it)
55
54
useMux := os .Getenv ("GOIC_HTTP_MUX" ) == "1"
You can’t perform that action at this time.
0 commit comments