We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fed9465 commit 76e9af5Copy full SHA for 76e9af5
sdk/base.js
@@ -2013,7 +2013,9 @@ function submitRequest(params, callback) {
2013
var auth = AuthData.Authorization;
2014
var formatAllow = false;
2015
if (auth) {
2016
- if (auth.indexOf('q-sign-algorithm=') > -1 &&
+ if (auth.indexOf(' ') > -1) {
2017
+ formatAllow = false;
2018
+ } else if (auth.indexOf('q-sign-algorithm=') > -1 &&
2019
auth.indexOf('q-ak=') > -1 &&
2020
auth.indexOf('q-sign-time=') > -1 &&
2021
auth.indexOf('q-key-time=') > -1 &&
@@ -2033,7 +2035,7 @@ function submitRequest(params, callback) {
2033
2035
}
2034
2036
2037
if (!formatAllow) {
- callback('authorization format error');
2038
+ callback('authorization error');
2039
return;
2040
2041
0 commit comments