File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,8 @@ public function getLogs(string $path = ""): string
5959 {
6060 if (!is_null ($ this ->handler )) {
6161 return $ this ->handler ->getLogs ($ path );
62-
6362 }
64- return "" ;
63+ return $ this -> getRoot ( " storage/logs/ " . $ path ) ;
6564 }
6665
6766 /**
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function setHeaders(array $arr): void
4141
4242 /**
4343 * Check is a header exists
44- * @param string $name Header name/key (case insensitive)
44+ * @param string $name Header name/key (case- insensitive)
4545 * @return boolean
4646 */
4747 public function hasHeader ($ name ): bool
@@ -73,12 +73,13 @@ public function getHeader($name): array
7373
7474 /**
7575 * Delete header from name/key
76- * @param string $name name/key (case insensitive)
76+ * @param string $name name/key (case- insensitive)
7777 * @return bool
7878 */
79- public function deleteHeader ($ name ): bool
79+ public function deleteHeader (string $ name ): bool
8080 {
8181 if ($ this ->hasHeader ($ name )) {
82+ $ name = $ this ->normalizeKey ($ name );
8283 unset($ this ->headers [$ name ]);
8384 return true ;
8485 }
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ public function clearCache(): ResponseInterface
215215 public function location (string $ url , int $ statusCode = 302 ): void
216216 {
217217 if ($ statusCode !== 301 && $ statusCode !== 302 ) {
218- throw new \Exception ("The second argumnet (statusCode) is expecting 301 or 302 " , 1 );
218+ throw new \Exception ("The second argument (statusCode) is expecting 301 or 302 " , 1 );
219219 }
220220 $ this ->withStatus ($ statusCode )
221221 ->withHeader ("Location " , $ url )
@@ -225,7 +225,7 @@ public function location(string $url, int $statusCode = 302): void
225225
226226
227227 /**
228- * Create headers createHeaders will only be exeuted once per instancse
228+ * Create headers createHeaders will only be executed once per instance
229229 * @return void
230230 */
231231 public function createHeaders (): void
You can’t perform that action at this time.
0 commit comments