ソースを参照

added existing headers to oauth debug output

CauseFX 3 年 前
コミット
30beca8e1b
1 ファイル変更2 行追加1 行削除
  1. 2 1
      api/classes/organizr.class.php

+ 2 - 1
api/classes/organizr.class.php

@@ -348,7 +348,8 @@ class Organizr
 					$this->coookieSeconds('set', 'organizrOAuth', 'true', 20000, false);
 					$this->setLoggerChannel('OAuth')->info('OAuth pre-check passed - adding organizrOAuth cookie', $data);
 				} else {
-					$this->setLoggerChannel('OAuth')->debug('Header not set', $data);
+					$data = array_merge($data, ['headers' => getallheaders()]);
+					$this->setLoggerChannel('OAuth')->debug('Headers not set', $data);
 				}
 			} else {
 				$this->setLoggerChannel('OAuth')->debug('OAuth not triggered', $data);