Tag: RequestLogBehavior
-
Post Views: 49 1. An error is reported in Yii 2.0: yii\base\ErrorException: undefined index: http_accept, as shown in Figure 1 2. Check the runtime log file: /api/runtime/logs/app.log 3. The log information of the two requests, found when $_SERVER[‘HTTP_USER_AGENT’]When the value is okhttp/3.12.0, $_server[‘HTTP_ACCEPT’]Does not exist 4. Ask the Android client to explicitly declare accept in headers when $_server[‘HTTP_USER_AGENT’]When the value…