Skip to content

Commit 50db93e

Browse files
authored
solve \n for begin public key
1 parent dbb1661 commit 50db93e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/middlewares/middlewares.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
// JwtProtected wrap http handler functions for jwt verification
1818
func JwtProtected(publicKey string) fiber.Handler {
1919
fmt.Println(publicKey)
20-
pKey := "-----BEGIN PUBLIC KEY-----\n"+insertNewlines(publicKey, int(64))+"-----END PUBLIC KEY-----\n"
20+
pKey := "-----BEGIN PUBLIC KEY-----\n"+insertNewlines(publicKey, int(64))+"\n-----END PUBLIC KEY-----\n"
2121
fmt.Println(pKey)
2222
//
2323
return func(c *fiber.Ctx) error {

0 commit comments

Comments
 (0)