aboutsummaryrefslogtreecommitdiff
path: root/weed/util/http_util_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/util/http_util_test.go')
-rw-r--r--weed/util/http_util_test.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/weed/util/http_util_test.go b/weed/util/http_util_test.go
new file mode 100644
index 000000000..a8a1172d2
--- /dev/null
+++ b/weed/util/http_util_test.go
@@ -0,0 +1,19 @@
+package util
+
+import (
+ "testing"
+
+ "github.com/valyala/fasthttp"
+)
+
+func TestFasthttpClientHead(t *testing.T) {
+ err := Head("https://www.google.com", func(header fasthttp.ResponseHeader) {
+ header.VisitAll(func(key, value []byte) {
+ println(string(key) + ": " + string(value))
+ })
+ })
+ if err != nil {
+ println(err.Error())
+ }
+
+}