260702_234512
This commit is contained in:
parent
aa83cf7b70
commit
3eccde543e
@ -232,13 +232,11 @@ func templates_register(template_renders map[string]string){
|
|||||||
}
|
}
|
||||||
|
|
||||||
func hdlr_film_parseMsg(resp http.ResponseWriter, req *http.Request){
|
func hdlr_film_parseMsg(resp http.ResponseWriter, req *http.Request){
|
||||||
fmt.Println("[srv] util", req.URL.Path)
|
fmt.Println("[srv] util", req.URL)
|
||||||
|
|
||||||
req_text, err := io.ReadAll(req.Body)
|
url_query := req.URL.Query()
|
||||||
if err != nil{ return }
|
|
||||||
fmt.Println(string(req_text))
|
|
||||||
|
|
||||||
t_url, _ := findURL_in_msg(string(req_text))
|
t_url, _ := findURL_in_msg(url_query.Get(""))
|
||||||
fmt.Println(t_url)
|
fmt.Println(t_url)
|
||||||
t_url_noRed, _ := resolve_redirs(t_url)
|
t_url_noRed, _ := resolve_redirs(t_url)
|
||||||
fmt.Println(t_url_noRed)
|
fmt.Println(t_url_noRed)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user