Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃摎 fix wrong session code example #1170

Merged
merged 3 commits into from
Feb 16, 2021
Merged

Conversation

ReneWerner87
Copy link
Member

No description provided.

@@ -76,7 +76,8 @@ app.Get("/", func(c *fiber.Ctx) error {
panic(err)
}

return fmt.Fprintf(ctx, "Welcome %v", name)
_, err = fmt.Fprintf(c, "Welcome %v", name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should use c.SendString? Just to make it a bit simpler and use Fiber functions

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jo, i will change it tomorrow

@ReneWerner87 ReneWerner87 merged commit 7d51885 into gofiber:master Feb 16, 2021
This was referenced Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants