We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ship/context.go
Lines 410 to 417 in 405a71d
ship/binder.go
Lines 72 to 83 in 405a71d
上面两处代码在获取 Content-Type 时用的是 index > 0,如果测试用例是 ; charset=utf-8,那么切割出的 Content-Type 是 ; charset=utf-8。此时我们期望结果的应该是 空字符串。
Content-Type
index > 0
; charset=utf-8
空字符串
故:此处使用 index >= 0 更为妥当
index >= 0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ship/context.go
Lines 410 to 417 in 405a71d
ship/binder.go
Lines 72 to 83 in 405a71d
上面两处代码在获取
Content-Type
时用的是index > 0
,如果测试用例是; charset=utf-8
,那么切割出的Content-Type
是; charset=utf-8
。此时我们期望结果的应该是空字符串
。故:此处使用
index >= 0
更为妥当The text was updated successfully, but these errors were encountered: