summaryrefslogtreecommitdiffhomepage
path: root/test/go
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2019-12-26 17:52:09 +0300
committerAndrei Belov <defan@nginx.com>2019-12-26 17:52:09 +0300
commit35ff5ee1e82a03e57d625230173a84c829c13257 (patch)
treec3dce5e8d50c8da9739f23b41a636931ad562e25 /test/go
parent0ec222bbb202194327c2e76d48f0b2608b37c162 (diff)
parent55f8e31ed70910ef07db31d7f3c53b12774180f9 (diff)
downloadunit-35ff5ee1e82a03e57d625230173a84c829c13257.tar.gz
unit-35ff5ee1e82a03e57d625230173a84c829c13257.tar.bz2
Merged with the default branch.1.14.0-1
Diffstat (limited to '')
-rw-r--r--test/go/404/app.go2
-rw-r--r--test/go/command_line_arguments/app.go2
-rw-r--r--test/go/cookies/app.go2
-rw-r--r--test/go/empty/app.go2
-rw-r--r--test/go/get_variables/app.go2
-rw-r--r--test/go/mirror/app.go2
-rw-r--r--test/go/ns_inspect/app.go4
-rw-r--r--test/go/post_variables/app.go2
-rw-r--r--test/go/variables/app.go2
9 files changed, 11 insertions, 9 deletions
diff --git a/test/go/404/app.go b/test/go/404/app.go
index 08fe56c9..7eba2cf4 100644
--- a/test/go/404/app.go
+++ b/test/go/404/app.go
@@ -4,7 +4,7 @@ import (
"io"
"io/ioutil"
"net/http"
- "nginx/unit"
+ "unit.nginx.org/go"
)
func handler(w http.ResponseWriter, r *http.Request) {
diff --git a/test/go/command_line_arguments/app.go b/test/go/command_line_arguments/app.go
index 234e565e..1101e1cf 100644
--- a/test/go/command_line_arguments/app.go
+++ b/test/go/command_line_arguments/app.go
@@ -4,7 +4,7 @@ import (
"fmt"
"io"
"net/http"
- "nginx/unit"
+ "unit.nginx.org/go"
"os"
"strings"
)
diff --git a/test/go/cookies/app.go b/test/go/cookies/app.go
index e6647ea8..2216e153 100644
--- a/test/go/cookies/app.go
+++ b/test/go/cookies/app.go
@@ -2,7 +2,7 @@ package main
import (
"net/http"
- "nginx/unit"
+ "unit.nginx.org/go"
)
func handler(w http.ResponseWriter, r *http.Request) {
diff --git a/test/go/empty/app.go b/test/go/empty/app.go
index 6e0fce1b..9326a19b 100644
--- a/test/go/empty/app.go
+++ b/test/go/empty/app.go
@@ -2,7 +2,7 @@ package main
import (
"net/http"
- "nginx/unit"
+ "unit.nginx.org/go"
)
func handler(w http.ResponseWriter, r *http.Request) {}
diff --git a/test/go/get_variables/app.go b/test/go/get_variables/app.go
index 4dcc0e7b..1c0205a8 100644
--- a/test/go/get_variables/app.go
+++ b/test/go/get_variables/app.go
@@ -2,7 +2,7 @@ package main
import (
"net/http"
- "nginx/unit"
+ "unit.nginx.org/go"
)
func handler(w http.ResponseWriter, r *http.Request) {
diff --git a/test/go/mirror/app.go b/test/go/mirror/app.go
index 748aa7ee..78f047c3 100644
--- a/test/go/mirror/app.go
+++ b/test/go/mirror/app.go
@@ -4,7 +4,7 @@ import (
"fmt"
"io"
"net/http"
- "nginx/unit"
+ "unit.nginx.org/go"
)
func handler(w http.ResponseWriter, r *http.Request) {
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)
}
diff --git a/test/go/post_variables/app.go b/test/go/post_variables/app.go
index 947976d2..e6279ac6 100644
--- a/test/go/post_variables/app.go
+++ b/test/go/post_variables/app.go
@@ -2,7 +2,7 @@ package main
import (
"net/http"
- "nginx/unit"
+ "unit.nginx.org/go"
)
func handler(w http.ResponseWriter, r *http.Request) {
diff --git a/test/go/variables/app.go b/test/go/variables/app.go
index fdcbf7e8..4be60cb7 100644
--- a/test/go/variables/app.go
+++ b/test/go/variables/app.go
@@ -4,7 +4,7 @@ import (
"fmt"
"io"
"net/http"
- "nginx/unit"
+ "unit.nginx.org/go"
)
func handler(w http.ResponseWriter, r *http.Request) {