|
|
@ -2,7 +2,6 @@ package api
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"encoding/base64"
|
|
|
|
"encoding/base64"
|
|
|
|
"encoding/gob"
|
|
|
|
|
|
|
|
"encoding/json"
|
|
|
|
"encoding/json"
|
|
|
|
"fmt"
|
|
|
|
"fmt"
|
|
|
|
"log"
|
|
|
|
"log"
|
|
|
@ -32,9 +31,6 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|
|
|
s.Exit.RLock()
|
|
|
|
s.Exit.RLock()
|
|
|
|
defer s.Exit.RUnlock()
|
|
|
|
defer s.Exit.RUnlock()
|
|
|
|
|
|
|
|
|
|
|
|
gob.Register([]interface{}{})
|
|
|
|
|
|
|
|
gob.Register(map[string]interface{}{})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if s.Debug {
|
|
|
|
if s.Debug {
|
|
|
|
w.Header().Set("Access-Control-Allow-Headers", "*")
|
|
|
|
w.Header().Set("Access-Control-Allow-Headers", "*")
|
|
|
|
w.Header().Set("Access-Control-Allow-Methods", "*")
|
|
|
|
w.Header().Set("Access-Control-Allow-Methods", "*")
|
|
|
|