Skip to content

Commit 089f754

Browse files
committed
Add Accept: json header.
1 parent a3c7ffb commit 089f754

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

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)