aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2021-12-30 16:21:01 +0530
committerArun Isaac2021-12-30 16:21:01 +0530
commit89c9f76c2a6b2b78fb1ea0dbef8df98220144ea1 (patch)
treec2e872aede4c7478dd2f92a162349866e1671fd5
parent602043b071085cfef2eabd19698fe8b54a574cee (diff)
downloadkolam-89c9f76c2a6b2b78fb1ea0dbef8df98220144ea1.tar.gz
kolam-89c9f76c2a6b2b78fb1ea0dbef8df98220144ea1.tar.lz
kolam-89c9f76c2a6b2b78fb1ea0dbef8df98220144ea1.zip
kolam: Set content-type of response to application/graphql+json.
* kolam/http.scm (graphql-handler): Set content-type of response to application/graphql+json.
-rw-r--r--kolam/http.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/kolam/http.scm b/kolam/http.scm
index b4d4beb..2098ef1 100644
--- a/kolam/http.scm
+++ b/kolam/http.scm
@@ -55,7 +55,7 @@ response and a response body. This function is suitable for use with
run-server from guile's (web server)."
(let ((evaluator (graphql-evaluator schema)))
(lambda (request body)
- (values '((content-type application-json))
+ (values '((content-type application/graphql+json))
(scm->json-string
(match (graphql-string->scm
(assoc-ref (graphql-request-alist request body)