Skip to content

Commit 3980416

Browse files
committed
test bug
1 parent d867411 commit 3980416

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

jwt.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,18 +398,14 @@ PHP_FUNCTION(jwt_encode)
398398
smart_str_free(&json_header);
399399
smart_str_free(&json_claims);
400400

401-
printf("%s\n", "=========");
402-
403401
/* sign */
404402
if (jwt->alg == JWT_ALG_NONE) {
405403
// alg none.
406404
smart_str_appendl(&segments, ".", 1);
407-
printf("%s\n", "++++++++++++");
408405
} else {
409406
/* set jwt struct */
410407
jwt->key = key;
411408
jwt->str = segments.s;
412-
printf("%s\n", "------------");
413409

414410
/* sign */
415411
if (jwt_sign(jwt, &sig, &sig_len)) {
@@ -428,6 +424,8 @@ PHP_FUNCTION(jwt_encode)
428424

429425
smart_str_0(&segments);
430426

427+
printf("%s\n", "++++++++++++");
428+
431429
encode_done:
432430
/* free */
433431
if (sig)

0 commit comments

Comments
 (0)