File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
const puppeteer = require ( 'puppeteer' ) ;
2
2
3
- puppeteer . launch ( ) . then ( async browser => {
3
+ puppeteer . launch ( { ignoreHTTPSErrors : true } ) . then ( async browser => {
4
4
const page = await browser . newPage ( ) ;
5
5
await page . setRequestInterception ( true ) ;
6
6
await page . setUserAgent ( 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36' ) ;
@@ -24,4 +24,6 @@ puppeteer.launch().then(async browser => {
24
24
let url = process . argv [ 2 ] ;
25
25
await page . goto ( url ) ;
26
26
await browser . close ( ) ;
27
+ } ) . catch ( err => {
28
+ process . exit ( ) ;
27
29
} ) ;
Original file line number Diff line number Diff line change @@ -66,6 +66,10 @@ func toMap(r io.Reader, args []string) interface{} {
66
66
if len (fields ) <= i {
67
67
break
68
68
}
69
+ // ignore fields that have a dash as a key
70
+ if k == "-" {
71
+ continue
72
+ }
69
73
line [k ] = fields [i ]
70
74
}
71
75
Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ func main() {
77
77
strings .Contains (p , "admin" ) ||
78
78
strings .Contains (p , "include" ) ||
79
79
strings .Contains (p , "src" ) ||
80
- strings .Contains (p , "redirect" )
80
+ strings .Contains (p , "redirect" ) ||
81
+ strings .Contains (p , "proxy" )
81
82
},
82
83
83
84
// non-standard port
You can’t perform that action at this time.
0 commit comments