Skip to content

Commit 7f19b2d

Browse files
committed
fix network authentication bearer for tokens
1 parent 3cf7752 commit 7f19b2d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/network.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,8 @@ char *network_authentication_token(const char *key, const char *value) {
286286
if (!buffer) return NULL;
287287

288288
// build new token
289-
// apikey: just write the key for retrocompatibility
290-
// other keys, like token: add a prefix, i.e. token=
291-
if (strcmp(key, "apikey") == 0) snprintf(buffer, len, "%s", value);
292-
else snprintf(buffer, len, "%s=%s", key, value);
289+
// we don't need a prefix because the token alreay include a prefix "sqa_"
290+
snprintf(buffer, len, "%s", value);
293291

294292
return buffer;
295293
}

0 commit comments

Comments
 (0)