Skip to content

Commit 310aaa5

Browse files
authored
Merge pull request #160 from ESchouten/content_type
Correct content type
2 parents 5820d6e + 54e490e commit 310aaa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kgraphql-ktor/src/main/kotlin/com/apurebase/kgraphql/KtorFeature.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class GraphQL(val schema: Schema) {
6161
config.contextSetup?.invoke(this, call)
6262
}
6363
val result = schema.execute(request.query, request.variables.toString(), ctx)
64-
call.respond(result)
64+
call.respondText(result, contentType = ContentType.Application.Json)
6565
}
6666
if (config.playground) get {
6767
@Suppress("RECEIVER_NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS")

0 commit comments

Comments
 (0)