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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修正onlyForV2()函数,使测试输出与博客上的结果一致 #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fengluodb
Copy link

在博客“Go语言动手写Web框架 - Gee第五天”中,给出的onlyForV2()函数,其中c.Fail()函数会导致测试的输出一直是{"message":"Internal Server Error"},服务端打印的结果也不是[200]。将c.Fail()函数改为c.Next()函数才能得到跟博客上相同的输出。

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

1 participant