From 635c1a2527f9fab7349688f6d2919bf9b81126c2 Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Thu, 28 Feb 2019 14:37:57 -0700 Subject: [PATCH] Fix spelling of Referer See https://github.com/gocolly/site/issues/9 --- content/docs/best_practices/extensions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/best_practices/extensions.md b/content/docs/best_practices/extensions.md index 24e280f..8c534aa 100644 --- a/content/docs/best_practices/extensions.md +++ b/content/docs/best_practices/extensions.md @@ -12,7 +12,7 @@ Extensions are small helper utilities shipped with Colly. List of plugins is ava ## Usage -The following example enables the random User-Agent switcher and the Referrer setter extension and visits httpbin.org twice. +The following example enables the random User-Agent switcher and the Referer setter extension and visits httpbin.org twice. ```go import ( @@ -27,7 +27,7 @@ func main() { visited := false extensions.RandomUserAgent(c) - extensions.Referrer(c) + extensions.Referer(c) c.OnResponse(func(r *colly.Response) { log.Println(string(r.Body))