Skip to content

Commit

Permalink
Fix import on README.md
Browse files Browse the repository at this point in the history
 - won't compile as is
  • Loading branch information
Yan-Fa Li committed Sep 14, 2018
1 parent d02538e commit e4eb640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/tls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ import (
"fmt"
"crypto/tls"
"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugins/tls"
gtls "gopkg.in/h2non/gentleman.v2/plugins/tls"
)

func main() {
// Create a new client
cli := gentleman.New()

// Define a custom header
cli.Use(tls.Config(&tls.Config{ServerName: "foo.com"}))
cli.Use(gtls.Config(&tls.Config{ServerName: "foo.com"}))

// Perform the request
res, err := cli.Request().URL("http://httpbin.org/headers").Send()
Expand Down

0 comments on commit e4eb640

Please sign in to comment.