From ef85081a743558dc697f8a5c51e106173dc2504a Mon Sep 17 00:00:00 2001 From: litefeel Date: Sun, 11 Mar 2018 22:58:08 +0800 Subject: [PATCH] fix typo --- lib/request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request.php b/lib/request.php index 8fb86fe..ac7c707 100644 --- a/lib/request.php +++ b/lib/request.php @@ -119,7 +119,7 @@ protected function headers() { // X-GitHub-Event: push // X-Hub-Signature: sha1=98185ffa2c4684c9a1324c57086709acca9dddc7 foreach ( $headers as $name => $value ) { - $this->headers[ str_replace( ' ', '-', ucwords( strtolower( str_replace( '_', ' ', $name ) ) ) ) ] = $value; + $this->headers[ str_replace( ' ', '-', ucwords( strtolower( str_replace( '-', ' ', $name ) ) ) ) ] = $value; } } else { /**