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

update filters tests and fix behaviours #602

Merged
merged 4 commits into from
May 2, 2022
Merged

update filters tests and fix behaviours #602

merged 4 commits into from
May 2, 2022

Conversation

suchen-sci
Copy link
Contributor

No description provided.

method := r.Method()
headerAllowMethod := r.Header().Get("Access-Control-Request-Method")
if method == http.MethodOptions && headerAllowMethod != "" {
a.cors.HandlerFunc(w.Std(), r.Std())
rw := httptest.NewRecorder()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is ok, but would be better if we can avoid using httptest, as it it for testing.

pkg/filters/headertojson/headertojson.go Outdated Show resolved Hide resolved
pkg/filters/headertojson/headertojson.go Outdated Show resolved Hide resolved
pkg/filters/kafkabackend/kafka.go Outdated Show resolved Hide resolved
pkg/filters/remotefilter/remotefilter.go Outdated Show resolved Hide resolved
pkg/filters/requestadaptor/requestadaptor.go Outdated Show resolved Hide resolved
pkg/filters/validator/validator.go Outdated Show resolved Hide resolved
@localvar localvar merged commit a94da75 into easegress-io:pipeline May 2, 2022
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