diff --git a/.travis.yml b/.travis.yml index b5ebb9ce..14437fb0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,12 @@ language: go go: - - 1.3 - - 1.4 - - 1.5 - - 1.6 + - 1.9 + - '1.10' + - 1.11 + - 1.12 + - 1.13 + - tip install: go get diff --git a/scgi.go b/scgi.go index eea2b4fe..c09306f7 100644 --- a/scgi.go +++ b/scgi.go @@ -143,7 +143,7 @@ func (s *Server) handleScgiRequest(fd io.ReadWriteCloser) { defer fd.Close() req, err := s.readScgiRequest(fd) if err != nil { - s.Logger.Println("Error reading SCGI request: %q", err.Error()) + s.Logger.Printf("Error reading SCGI request: %q\n", err.Error()) return } sc := scgiConn{fd, req, make(map[string][]string), false} diff --git a/web_test.go b/web_test.go index 6468b796..3bba0582 100644 --- a/web_test.go +++ b/web_test.go @@ -461,7 +461,7 @@ func TestReadScgiRequest(t *testing.T) { var s Server httpReq, err := s.readScgiRequest(&ioBuffer{input: req, output: nil}) if err != nil { - t.Fatalf("Error while reading SCGI request: ", err.Error()) + t.Fatalf("Error while reading SCGI request: %s", err.Error()) } if httpReq.ContentLength != 12 { t.Fatalf("Content length mismatch, expected %d, got %d ", 12, httpReq.ContentLength)