This commit is contained in:
parent
4fd3eb73ed
commit
db40a9fd1c
|
@ -20,7 +20,6 @@ package server
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"regexp"
|
||||
|
||||
|
@ -45,9 +44,9 @@ func NewMicrosubHandler(backend microsub.Microsub) http.Handler {
|
|||
|
||||
func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
r.ParseForm()
|
||||
log.Printf("%s %s\n", r.Method, r.URL)
|
||||
log.Println(r.URL.Query())
|
||||
log.Println(r.PostForm)
|
||||
// log.Printf("%s %s\n", r.Method, r.URL)
|
||||
// log.Println(r.URL.Query())
|
||||
// log.Println(r.PostForm)
|
||||
|
||||
if r.Method == http.MethodOptions {
|
||||
w.Header().Add("Access-Control-Allow-Origin", "*")
|
||||
|
|
Loading…
Reference in New Issue
Block a user