Update main.go
This commit is contained in:
committed by
GitHub
parent
734b7da546
commit
6dfb83eb6a
@@ -14,7 +14,6 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@@ -199,7 +198,7 @@ func caHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
w.Write(caData)
|
w.Write(caData)
|
||||||
}
|
}
|
||||||
|
|
||||||
// blockHandler serves the fancy block page.
|
// blockHandler serves the block page.
|
||||||
func blockHandler(w http.ResponseWriter, r *http.Request) {
|
func blockHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
log.Printf("Serving block page for %s", r.URL.String())
|
log.Printf("Serving block page for %s", r.URL.String())
|
||||||
w.Header().Set("Content-Type", "text/html")
|
w.Header().Set("Content-Type", "text/html")
|
||||||
|
|||||||
Reference in New Issue
Block a user