summaryrefslogtreecommitdiffhomepage
path: root/test/go/ns_inspect/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/go/ns_inspect/app.go')
-rw-r--r--test/go/ns_inspect/app.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/go/ns_inspect/app.go b/test/go/ns_inspect/app.go
index ebecbb00..d9b561c9 100644
--- a/test/go/ns_inspect/app.go
+++ b/test/go/ns_inspect/app.go
@@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"
"net/http"
- "nginx/unit"
+ "unit.nginx.org/go"
"os"
"strconv"
)
@@ -70,6 +70,8 @@ func handler(w http.ResponseWriter, r *http.Request) {
return
}
+ w.Header().Add("Content-Type", "application/json")
+
w.Write(data)
}