Skip to content

Commit 7e76cd8

Browse files
committed
Correctly set scheme in coreapi TokenAuthentication
1 parent 73ad88e commit 7e76cd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • rest_framework/static/rest_framework/docs/js

rest_framework/static/rest_framework/docs/js/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ $('form.api-interaction').submit(function(event) {
163163
if (window.auth && window.auth.type === 'token') {
164164
// Header authentication
165165
options.auth = new coreapi.auth.TokenAuthentication({
166-
prefix: window.auth.scheme,
166+
scheme: window.auth.scheme,
167167
token: window.auth.token
168168
})
169169
} else if (window.auth && window.auth.type === 'basic') {

0 commit comments

Comments
 (0)