diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 874015b..bfa4134 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -2,7 +2,7 @@ name: sigsci-module-golang
on:
push:
branches:
- - master
+ - main
pull_request:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 47c32b7..202b795 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# GoLang Module Release Notes
+## 1.10.0 2021-05-26
+
+* Added support for `application/graphql` content-type
+
## 1.9.0 2020-10-22
* Added `server_flavor` config option.
diff --git a/README.md b/README.md
index 67dcc99..40a5108 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ Effective **May 17th 2021** the default branch will change from `master` to `mai
git branch -m master main
git fetch origin
git branch -u origin/main main
-git remote set-head origin -
+git remote set-head origin -a
```
## Installation
diff --git a/VERSION b/VERSION
index abb1658..81c871d 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.9.0
\ No newline at end of file
+1.10.0
diff --git a/module.go b/module.go
index 2773b22..6af3652 100644
--- a/module.go
+++ b/module.go
@@ -473,6 +473,10 @@ func inspectableContentType(s string) bool {
// gRPC (protobuf)
case strings.HasPrefix(s, "application/grpc"):
return true
+
+ // GraphQL
+ case strings.HasPrefix(s, "application/graphql"):
+ return true
}
return false
diff --git a/module_test.go b/module_test.go
index c1462b1..0dd1416 100644
--- a/module_test.go
+++ b/module_test.go
@@ -270,6 +270,7 @@ func TestInspectableContentType(t *testing.T) {
{true, "text/x-javascript"},
{true, "text/x-json"},
{true, "application/javascript"},
+ {true, "application/graphql"},
{false, "octet/stream"},
{false, "junk/yard"},
}
@@ -328,6 +329,7 @@ func TestModule(t *testing.T) {
{genTestRequest("POST", "http://example.com/", "application/rss+xml", `1`), 403, "XSS"},
{genTestRequest("POST", "http://example.com/", "application/rss+xml", `1`), 500, "XSS"},
{genTestRequest("POST", "http://example.com/", "application/rss+xml", `1`), 200, ""},
+ {genTestRequest("POST", "http://example.com/", "application/graphql", `{}`), 200, ""},
}
for pos, tt := range cases {
diff --git a/version.go b/version.go
index cc74810..4134041 100644
--- a/version.go
+++ b/version.go
@@ -1,3 +1,3 @@
package sigsci
-const version = "1.9.0"
+const version = "1.10.0"