From 10a9072c9847c36c690ae7dbc7c3605974c4ccaa Mon Sep 17 00:00:00 2001 From: Daniel Rocha Date: Wed, 31 Oct 2018 19:38:50 +0100 Subject: [PATCH] Simplify code --- htp.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/htp.go b/htp.go index 05f5039..50855ee 100644 --- a/htp.go +++ b/htp.go @@ -23,9 +23,6 @@ func main() { log.Fatal(err) } date := resp.Header.Get("Date") - if date == "" { - log.Fatal("Date header is missing") - } t2, err := time.Parse(time.RFC1123, date) if err != nil { log.Fatal(err)