로그 추가
This commit is contained in:
@ -121,8 +121,10 @@ func (h *houstonHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
var operation string
|
||||
if r.Method == "POST" {
|
||||
operation = r.FormValue("operation")
|
||||
logger.Println("api called :", r.Form)
|
||||
} else {
|
||||
operation = r.URL.Query().Get("operation")
|
||||
logger.Println("api called :", r.URL.Query())
|
||||
}
|
||||
|
||||
if len(operation) == 0 {
|
||||
@ -138,10 +140,6 @@ func (h *houstonHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if r.PostForm == nil {
|
||||
r.ParseMultipartForm(defaultMaxMemory)
|
||||
}
|
||||
|
||||
args := []reflect.Value{
|
||||
reflect.ValueOf(h),
|
||||
reflect.ValueOf(w),
|
||||
|
||||
Reference in New Issue
Block a user