Update webpagetool.php

This commit is contained in:
Namhyeon Go 2018-11-26 19:42:39 +09:00 committed by GitHub
parent 39a6c84c9a
commit 92d3d1ec98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,11 +264,11 @@ if(!function_exists("get_web_page")) {
$status = false;
$resno = false;
$errno = false;
$req_method = $method;
$content = false;
$headers = array();
$req_method = $method;
// redefine data
$headers = array();
if(array_key_is_array("headers", $data)) {
$headers = $data['headers'];
$data = $data['data'];