This commit is contained in:
merdan 2023-03-18 13:40:23 +05:00
parent 33b0cfbe45
commit 6ff32267c7
1 changed files with 3 additions and 1 deletions

View File

@ -79,7 +79,9 @@ func ParseLinkTY(link string,w http.ResponseWriter) {
product, err := linkParser.ParseLink()
fmt.Println(product)
jsProd,_:= json.MarshalIndent(product,""," ")
fmt.Println(string(jsProd))
if err != nil {
w.WriteHeader(http.StatusInternalServerError)