Correctly set scheme in coreapi TokenAuthentication

This commit is contained in:
José Padilla 2017-03-17 20:27:36 -04:00
parent 73ad88eaae
commit 7e76cd8695
No known key found for this signature in database
GPG Key ID: AAE3EF579B2987B1

View File

@ -163,7 +163,7 @@ $('form.api-interaction').submit(function(event) {
if (window.auth && window.auth.type === 'token') {
// Header authentication
options.auth = new coreapi.auth.TokenAuthentication({
prefix: window.auth.scheme,
scheme: window.auth.scheme,
token: window.auth.token
})
} else if (window.auth && window.auth.type === 'basic') {