From 0c0c9110773c1cfbffeca978f2716cc840fb867e Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Tue, 16 Nov 2021 10:51:44 +0200 Subject: [PATCH] Update agent.cr --- src/mechanize/http/agent.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mechanize/http/agent.cr b/src/mechanize/http/agent.cr index 41727a8..f546ff9 100644 --- a/src/mechanize/http/agent.cr +++ b/src/mechanize/http/agent.cr @@ -96,7 +96,7 @@ class Mechanize end # Sets a Referer header. - def set_request_referer(referer : MechanizeCr::Page?) + def set_request_referer(referer : Mechanize::Page?) return unless referer request_headers["Referer"] = referer.uri.to_s