Skip to content

Commit

Permalink
Merge pull request #3 from digitickets/2.7.2-fix-http-accept
Browse files Browse the repository at this point in the history
fix server attributes retrieval
  • Loading branch information
jamesgarton authored Apr 21, 2024
2 parents 5445c0a + 16ffb97 commit cc09643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Message/DirectAuthorizeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ protected function getBaseAuthorizeData()
$data['BrowserJavascriptEnabled'] = $this->getBrowserJavascriptEnabled() ?: static::BROWSER_JAVASCRIPT_NO;
$data['BrowserLanguage'] = $this->getBrowserLanguage() ?: static::BROWSER_LANGUAGE;
$data['ThreeDSNotificationURL'] = $this->getThreeDSNotificationURL();
$data['BrowserAcceptHeader'] = $_SERVER['HTTP_ACCEPT'];
$data['BrowserUserAgent'] = $_SERVER['HTTP_USER_AGENT'];
$data['BrowserAcceptHeader'] = !empty($_SERVER['HTTP_ACCEPT']) ? $_SERVER['HTTP_ACCEPT'] : null;
$data['BrowserUserAgent'] = !empty($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : null;
$data['ChallengeWindowSize'] = $this->getChallengeWindowSize() ?: static::CHALLENGE_WINDOW_SIZE_05;
// ----
// ---- "4.00" - required if BrowserJavascriptEnabled == "1"
Expand Down

0 comments on commit cc09643

Please sign in to comment.