liuxiaolong
2019-08-16 f81035f3ecf0c02eaf94d6cba4ac07dfd757012c
middlewares/auth/auth.go
@@ -1,11 +1,11 @@
package auth
import (
   "fmt"
   "github.com/gin-gonic/gin"
   "net/http"
   "strings"
   "webserver/extend/config"
   "webserver/extend/logger"
)
const (
@@ -46,7 +46,7 @@
               imgUrl = imgUrl[:imgIndx-1]
            }
         }
         fmt.Println("imgUrl+tmpPath:", imgUrl+tmpPath)
         logger.Debug("imgUrl+tmpPath:", imgUrl+tmpPath)
         c.Header("Access-Control-Allow-Origin","*")
         c.Redirect(http.StatusMovedPermanently, imgUrl+tmpPath)
         return