From 39a6c84c9aa1c5270e7343ede3b7482ab1a9852c Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 26 Nov 2018 19:41:36 +0900 Subject: [PATCH] Update webpagetool.php --- helper/webpagetool.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helper/webpagetool.php b/helper/webpagetool.php index 0290e33..d1afc9b 100644 --- a/helper/webpagetool.php +++ b/helper/webpagetool.php @@ -238,6 +238,10 @@ if(!function_exists("get_web_curl")) { $options[CURLOPT_URL] = get_web_build_qs($url, $data); } + if(count($headers) > 0) { + $options[CURLOPT_HTTPHEADER] = $headers; + } + $ch = curl_init(); curl_setopt_array($ch, $options);