updated code
This commit is contained in:
parent
e95ab1fb73
commit
47953cf341
@ -107,6 +107,7 @@ func BinaryHandler(w http.ResponseWriter, req *http.Request) {
|
|||||||
func init() {
|
func init() {
|
||||||
path, _ := launcher.New().
|
path, _ := launcher.New().
|
||||||
Headless(true).
|
Headless(true).
|
||||||
|
NoSandbox(true).
|
||||||
// Uncomment below to see browser
|
// Uncomment below to see browser
|
||||||
// Set("headless", "false").
|
// Set("headless", "false").
|
||||||
Launch()
|
Launch()
|
||||||
|
|||||||
2
main.go
2
main.go
@ -8,5 +8,5 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
http.HandleFunc("/report", backend.ReportHandler)
|
http.HandleFunc("/report", backend.ReportHandler)
|
||||||
http.HandleFunc("/", backend.BinaryHandler)
|
http.HandleFunc("/", backend.BinaryHandler)
|
||||||
http.ListenAndServe(":8080", nil)
|
http.ListenAndServe(":80", nil)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user