-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
refactor: move accept header form mux to server options #324
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR! 🙏🏼
Fixes #266 |
@@ -402,10 +402,10 @@ func TestGroupParams(t *testing.T) { | |||
t.Log(document.Paths.Find("/").Get.Parameters[0].Value.Name) | |||
require.Len(t, document.Paths.Find("/").Get.Parameters, 1) | |||
require.Equal(t, document.Paths.Find("/").Get.Parameters[0].Value.Name, "Accept") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not your change, but we may want to check if require.NotNil(t, document.Paths.Find("/").Get.Parameters[0].Value)
Also could probably change all the require.Equal
below to assert
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a nitpick feel free to resolve
Please rebase your branch on Thanks for the PR! |
refactor: move accept header form mux to server options
fixes #266