summaryrefslogtreecommitdiff
path: root/http/server.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-03 13:00:58 +0300
committerWolfy-J <[email protected]>2018-06-03 13:00:58 +0300
commit00eaa539e333184bdfb73fe3347bc5358de8a551 (patch)
treee323ff9acd8ee769aedcc26e036664dafa6031d0 /http/server.go
parentd1290a636e70d1797261c189285cc6fc6310a0be (diff)
go fmt
Diffstat (limited to 'http/server.go')
-rw-r--r--http/server.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/http/server.go b/http/server.go
index 039dba02..41e39133 100644
--- a/http/server.go
+++ b/http/server.go
@@ -1,11 +1,11 @@
package http
import (
+ "errors"
+ "github.com/sirupsen/logrus"
"github.com/spiral/roadrunner"
"net/http"
"strconv"
- "errors"
- "github.com/sirupsen/logrus"
)
// Service serves http connections to underlying PHP application using PSR-7 protocol. Context will include request headers,
@@ -28,7 +28,7 @@ func NewServer(cfg *Config, server *roadrunner.Server) *Server {
}
// ServeHTTP serve using PSR-7 requests passed to underlying application. Attempts to serve static files first if enabled.
-func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) () {
+func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if srv.cfg.ServeStatic && srv.static.serve(w, r) {
return
}