add important headers
This commit is contained in:
parent
ff6d157e6b
commit
2f24020263
2 changed files with 49 additions and 7 deletions
5
main.go
5
main.go
|
@ -67,7 +67,10 @@ func main() {
|
|||
// start the web server!
|
||||
mux := createServeMux()
|
||||
fmt.Printf("Now serving at http://127.0.0.1:%d\n", global.Config.Port)
|
||||
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", global.Config.Port), global.HTTPLog(mux)))
|
||||
log.Fatal(
|
||||
http.ListenAndServe(fmt.Sprintf(":%d", global.Config.Port),
|
||||
global.HTTPLog(global.DefaultHeaders(mux)),
|
||||
))
|
||||
}
|
||||
|
||||
func createServeMux() *http.ServeMux {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue