mirror of
https://github.com/pierre-emmanuelJ/iptv-proxy.git
synced 2026-03-16 17:42:48 +01:00
Fix methode get
Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
This commit is contained in:
@@ -13,17 +13,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (p *proxy) xtreamPlayerAPIGET(c *gin.Context) {
|
func (p *proxy) xtreamPlayerAPIGET(c *gin.Context) {
|
||||||
|
p.xtreamPlayerAPI(c, c.Request.URL.Query())
|
||||||
log.Println(c.Request.RequestURI)
|
|
||||||
|
|
||||||
q, err := url.ParseQuery(c.Request.RequestURI)
|
|
||||||
if err != nil {
|
|
||||||
c.AbortWithError(http.StatusInternalServerError, err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
p.xtreamPlayerAPI(c, q)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *proxy) xtreamPlayerAPIPOST(c *gin.Context) {
|
func (p *proxy) xtreamPlayerAPIPOST(c *gin.Context) {
|
||||||
@@ -33,8 +23,6 @@ func (p *proxy) xtreamPlayerAPIPOST(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println(string(contents))
|
|
||||||
|
|
||||||
q, err := url.ParseQuery(string(contents))
|
q, err := url.ParseQuery(string(contents))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.AbortWithError(http.StatusInternalServerError, err)
|
c.AbortWithError(http.StatusInternalServerError, err)
|
||||||
@@ -42,7 +30,6 @@ func (p *proxy) xtreamPlayerAPIPOST(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
p.xtreamPlayerAPI(c, q)
|
p.xtreamPlayerAPI(c, q)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *proxy) xtreamPlayerAPI(c *gin.Context, q url.Values) {
|
func (p *proxy) xtreamPlayerAPI(c *gin.Context, q url.Values) {
|
||||||
|
|||||||
Reference in New Issue
Block a user