mirror of
https://github.com/bitinflow/expose.git
synced 2026-10-31 20:59:09 +00:00
wip
This commit is contained in:
1 parent
5d9a40762a
commit
3d94ee6900
1 file changed
+8
-2
@@ -196,12 +196,18 @@ class LoggedRequest implements \JsonSerializable
|
||||
|
||||
protected function detectSubdomain()
|
||||
{
|
||||
return Arr::get($this->parsedRequest->getHeaders()->toArray(), 'X-Original-Host');
|
||||
return collect($this->parsedRequest->getHeaders()->toArray())
|
||||
->mapWithKeys(function ($value, $key) {
|
||||
return [strtolower($key) => $value];
|
||||
})->get('x-original-host');
|
||||
}
|
||||
|
||||
protected function getRequestId()
|
||||
{
|
||||
return Arr::get($this->parsedRequest->getHeaders()->toArray(), 'X-Expose-Request-ID', (string)Str::uuid());
|
||||
return collect($this->parsedRequest->getHeaders()->toArray())
|
||||
->mapWithKeys(function ($value, $key) {
|
||||
return [strtolower($key) => $value];
|
||||
})->get('x-expose-request-id', (string)Str::uuid());
|
||||
}
|
||||
|
||||
public function getDuration()
|
||||
|
||||
Reference in new issue
Block a user