Skip to content

Commit 2315399

Browse files
author
Jared Mackey
committed
Allow json header. Originally contributed at manosim@089f754
1 parent 5c91f22 commit 2315399

File tree

1 file changed

+1
-0
lines changed
  • rest_framework_docs/static/rest_framework_docs/js/components

1 file changed

+1
-0
lines changed

Diff for: rest_framework_docs/static/rest_framework_docs/js/components/liveapi.js

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ var LiveAPIEndpoints = React.createClass({
3737
// Now Make the Request
3838
APIRequest(request.selectedMethod, request.endpoint.path)
3939
.set(headers)
40+
.accept("json")
4041
.send(data)
4142
.end(function (err, res) {
4243
self.setState({

0 commit comments

Comments
 (0)