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
59
59
{
60
60
if (!is_null ($ this ->handler )) {
61
61
return $ this ->handler ->getLogs ($ path );
62
-
63
62
}
64
- return "" ;
63
+ return $ this -> getRoot ( " storage/logs/ " . $ path ) ;
65
64
}
66
65
67
66
/**
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function setHeaders(array $arr): void
41
41
42
42
/**
43
43
* Check is a header exists
44
- * @param string $name Header name/key (case insensitive)
44
+ * @param string $name Header name/key (case- insensitive)
45
45
* @return boolean
46
46
*/
47
47
public function hasHeader ($ name ): bool
@@ -73,12 +73,13 @@ public function getHeader($name): array
73
73
74
74
/**
75
75
* Delete header from name/key
76
- * @param string $name name/key (case insensitive)
76
+ * @param string $name name/key (case- insensitive)
77
77
* @return bool
78
78
*/
79
- public function deleteHeader ($ name ): bool
79
+ public function deleteHeader (string $ name ): bool
80
80
{
81
81
if ($ this ->hasHeader ($ name )) {
82
+ $ name = $ this ->normalizeKey ($ name );
82
83
unset($ this ->headers [$ name ]);
83
84
return true ;
84
85
}
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ public function clearCache(): ResponseInterface
215
215
public function location (string $ url , int $ statusCode = 302 ): void
216
216
{
217
217
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 );
219
219
}
220
220
$ this ->withStatus ($ statusCode )
221
221
->withHeader ("Location " , $ url )
@@ -225,7 +225,7 @@ public function location(string $url, int $statusCode = 302): void
225
225
226
226
227
227
/**
228
- * Create headers createHeaders will only be exeuted once per instancse
228
+ * Create headers createHeaders will only be executed once per instance
229
229
* @return void
230
230
*/
231
231
public function createHeaders (): void
You can’t perform that action at this time.
0 commit comments