~elektito/hodhod

645dc9110912c0dc7721ff1d81757bf199ddbafb — Mostafa Razavi 1 year, 3 months ago 572f158
Log requested URL
1 files changed, 2 insertions(+), 0 deletions(-)

M main.go
M main.go => main.go +2 -0
@@ 90,6 90,8 @@ func handleConn(conn net.Conn, cfg *hodhod.Config) {
	}

	urlStr := s.Text()
	log.Println("Request:", urlStr)

	urlParsed, err := url.Parse(urlStr)
	if err != nil {
		conn.Write([]byte("59 Bad Request\r\n"))