We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5ca550 commit 9cac881Copy full SHA for 9cac881
1 file changed
dgraph/cmd/alpha/http.go
@@ -200,7 +200,8 @@ func queryHandler(w http.ResponseWriter, r *http.Request) {
200
params.Query = string(body)
201
202
default:
203
- x.SetStatus(w, x.ErrorInvalidRequest, "Unsupported Content-Type")
+ x.SetStatus(w, x.ErrorInvalidRequest, "Unsupported Content-Type. "+
204
+ "Supported content types are application/json, application/graphqlpm")
205
return
206
}
207
@@ -327,7 +328,8 @@ func mutationHandler(w http.ResponseWriter, r *http.Request) {
327
328
329
330
331
332
+ "Supported content types are application/json, application/rdf")
333
334
335
0 commit comments