aboutsummaryrefslogtreecommitdiff
path: root/http_server.go
diff options
context:
space:
mode:
Diffstat (limited to 'http_server.go')
-rw-r--r--http_server.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/http_server.go b/http_server.go
index 2b1f77a..6520037 100644
--- a/http_server.go
+++ b/http_server.go
@@ -15,6 +15,10 @@ import (
type forgeHTTPRouter struct{}
+// ServeHTTP handles all incoming HTTP requests and routes them to the correct
+// location.
+//
+// TODO: This function is way too large.
func (router *forgeHTTPRouter) ServeHTTP(writer http.ResponseWriter, request *http.Request) {
var remoteAddr string
if config.HTTP.ReverseProxy {