Skip to content
Snippets Groups Projects
Commit 017b1813 authored by Yoan VALLET's avatar Yoan VALLET
Browse files

change content into the enedis answer body

parent e91e20e9
Branches
No related tags found
No related merge requests found
Pipeline #5405 passed
......@@ -151,6 +151,8 @@ func main() {
pageContentString := string(contents)
// Replace redirectUri by the host in the body
pageContentString = strings.ReplaceAll(pageContentString, redirectUri, replyUri)
// Prevent the closure of the opener
pageContentString = strings.ReplaceAll(pageContentString, "this.window.opener.location.href = url;", "this.window.location.href = url;")
fmt.Println(pageContentString)
// Convert string to byte for response writting
newPageContentByte := []byte(pageContentString)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment