From 2086754a954068afbaf72576b7639a7bacab695a Mon Sep 17 00:00:00 2001 From: arzumify Date: Mon, 28 Oct 2024 10:01:30 +0000 Subject: [PATCH] Added DefaultClient for compatiblity (it's an alias for fetch) --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index ba46aa8..0dc16f2 100644 --- a/main.go +++ b/main.go @@ -314,6 +314,9 @@ var Fetch = &Client{ Timeout: 20 * time.Second, } +// DefaultClient is an alias for Fetch. +var DefaultClient = Fetch + func CanonicalHeaderKey(key string) string { const allowedCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#$%&'*+-.^_`|~" for _, char := range []rune(key) {