fix(commonHandler): 修复了一处兼容问题

This commit is contained in:
李东云
2023-02-03 10:28:00 +08:00
parent 113e7fca57
commit fca8f9d013

View File

@@ -80,7 +80,7 @@ class CommonHandler extends ExceptionHandler
$this->request->url();
$is_debug = $this->request->hasHeader('Postman-Token')
|| str_starts_with($this->request->header('User-Agent'), 'apifox');
|| str_starts_with($this->request->header('User-Agent', ''), 'apifox');
$request_data = Json::encode($this->request->getParsedBody());
$request_headers = Json::encode($this->request->getHeaders());