parent
ace44b0d6d
commit
b9e9cfc57d
4
main.go
4
main.go
@ -11,6 +11,10 @@ import (
|
|||||||
func handler(w http.ResponseWriter, r *http.Request) {
|
func handler(w http.ResponseWriter, r *http.Request) {
|
||||||
fmt.Println(strings.Repeat("~", 80))
|
fmt.Println(strings.Repeat("~", 80))
|
||||||
|
|
||||||
|
if r.Host != "" {
|
||||||
|
fmt.Printf("Host: %s\n\n", r.Host)
|
||||||
|
}
|
||||||
|
|
||||||
if len(r.Header) > 0 {
|
if len(r.Header) > 0 {
|
||||||
fmt.Println("--- Headers ---")
|
fmt.Println("--- Headers ---")
|
||||||
for name, values := range r.Header {
|
for name, values := range r.Header {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user