Created
May 10, 2021 15:33
-
-
Save LautaroJayat/e9ac9171f5f41a14768af82c5fcbc95c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package strategy | |
import ( | |
"net/http" | |
"net/http/httputil" | |
"github.com/julienschmidt/httprouter" | |
) | |
func FwdOptionsReq(rp *httputil.ReverseProxy) httprouter.Handle{ | |
return func (w http.ResponseWriter, r *http.Request, _ httprouter.Params){ | |
rp.ServeHTTP(w, r) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment