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

refactor: move accept header form mux to server options #324

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

ekumamatthew
Copy link

@ekumamatthew ekumamatthew commented Dec 30, 2024

refactor: move accept header form mux to server options
fixes #266

Copy link
Member

@EwenQuim EwenQuim left a 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! 🙏🏼

server.go Outdated Show resolved Hide resolved
@EwenQuim
Copy link
Member

EwenQuim commented Jan 9, 2025

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")
Copy link
Collaborator

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.

Copy link
Collaborator

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

@EwenQuim
Copy link
Member

Please rebase your branch on main, it is quite outdated :)

Thanks for the PR!

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.

Remove hardcoded Accept header
3 participants