Browse Source

added existing headers to oauth debug output

CauseFX 4 years ago
parent
commit
30beca8e1b
1 changed files with 2 additions and 1 deletions
  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->coookieSeconds('set', 'organizrOAuth', 'true', 20000, false);
 					$this->setLoggerChannel('OAuth')->info('OAuth pre-check passed - adding organizrOAuth cookie', $data);
 					$this->setLoggerChannel('OAuth')->info('OAuth pre-check passed - adding organizrOAuth cookie', $data);
 				} else {
 				} else {
-					$this->setLoggerChannel('OAuth')->debug('Header not set', $data);
+					$data = array_merge($data, ['headers' => getallheaders()]);
+					$this->setLoggerChannel('OAuth')->debug('Headers not set', $data);
 				}
 				}
 			} else {
 			} else {
 				$this->setLoggerChannel('OAuth')->debug('OAuth not triggered', $data);
 				$this->setLoggerChannel('OAuth')->debug('OAuth not triggered', $data);