We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 606fe5a + 8a16a02 commit 85e714eCopy full SHA for 85e714e
1 file changed
cmd/filter-proxy/main.go
@@ -45,6 +45,12 @@ func main() {
45
46
if path.Passthrough {
47
router.PathPrefix(path.Path).HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
48
+ if r.Method == http.MethodOptions {
49
+ w.Header().Add("Methods", "OPTIONS, GET, HEAD")
50
+ writeError(w, http.StatusOK, "options response from filter-proxy")
51
+ return
52
+ }
53
+
54
client := &http.Client{}
55
56
//http: Request.RequestURI can't be set in client requests.
@@ -99,6 +105,12 @@ func main() {
99
105
return
100
106
}
101
107
108
109
110
111
112
113
102
114
utils.DelHopHeaders(r.Header)
103
115
104
116
var bodyFilterParams map[string]interface{}
0 commit comments