1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-26 03:51:57 +02:00

Update README.md

This commit is contained in:
Tim Voronov 2019-02-21 19:08:33 -05:00 committed by GitHub
parent 2be0d471ac
commit efa0444c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -454,11 +454,9 @@ func run(q string) ([]byte, error) {
// create a root context
ctx := context.Background()
// we inform the driver what proxy to use
ctx = html.WithStatic(
ctx,
http.NewDriver(http.WithProxy(proxy)),
)
// we inform the driver what proxy to use
ctx = drivers.WithContext(ctx, http.NewDriver(http.WithProxy(proxy)), drivers.AsDefault())
return program.Run(ctx)
}