Skip to content

Commit 756aa54

Browse files
committed
1
1 parent 6754f32 commit 756aa54

File tree

108 files changed

+27
-14927
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+27
-14927
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"php": ">=5.6",
1717
"ext-openssl": "*",
1818
"ext-json": "*",
19-
"ext-curl": "*"
19+
"ext-curl": "*",
20+
"symfony/var-dumper": "^5.3"
2021
},
2122
"autoload": {
2223
"psr-4": {

test/charset/charset.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
<meta charset=utf-8>
4+
<meta charset="utf-8">
5+
<meta charset='utf-8'>
6+
<meta charset= 'utf-8'>
7+
<meta charset='utf-8' >
8+
9+
<meta content="text/html; charset=gb2312" http-equiv="Content-Type">
10+
<meta http-equiv="content-type" content="text/html;charset=utf-8">
11+
12+
<!-- 使用别名 -->
13+
<meta charset="utf8">

test/composer.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

test/composer.lock

Lines changed: 0 additions & 288 deletions
This file was deleted.

test/server.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@
6464

6565

6666

67-
//function getAllHeaders2()
68-
//{
69-
// foreach ($_SERVER as $name => $value)
70-
// {
71-
// if (substr($name, 0, 5) == 'HTTP_')
72-
// {
73-
// $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
74-
// }
75-
// }
76-
// return $headers;
77-
//}
67+
function getAllHeaders()
68+
{
69+
foreach ($_SERVER as $name => $value)
70+
{
71+
if (substr($name, 0, 5) == 'HTTP_')
72+
{
73+
$headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
74+
}
75+
}
76+
return $headers;
77+
}

test/test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//报告E_NOTICE之外的所有错误(可解决变量不存在导致的错误,如GET、POST数据)
44
error_reporting(E_ALL & ~E_NOTICE);
55

6-
require_once './vendor/autoload.php';
6+
require_once '../vendor/autoload.php';
77
require_once '../src/HttpClient.php';
88

99
$options = [

test/vendor/autoload.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)