Skip to content
Snippets Groups Projects
Commit 1f9d0355 authored by ale's avatar ale
Browse files

filter out SOURCE requests

parent 37f7f188
No related branches found
No related tags found
No related merge requests found
......@@ -116,5 +116,9 @@ func (h *HttpRedirector) serveSource(w http.ResponseWriter, r *http.Request) {
}
func (h *HttpRedirector) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// TODO: pick between serveRelay() and serveSource().
if r.Method == "SOURCE" {
serveSource(w, r)
} else {
serveRelay(w, r)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment