Skip to content

Commit b47f118

Browse files
Merge pull request #19 from Crowdhandler/update/ch-diagnostics
Adding enabled to ch diagnostics header
2 parents 9817217 + ec0475a commit b47f118

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

includes/class-crowdhandler-diagnostics.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ public function addCHDiagnostics($headers)
2222
{
2323
if($this->options){
2424
$indexOverride = (isset($this->options['crowdhandler_settings_field_override_index'])) ? '1' : '0';
25+
$isEnabled = (isset($this->options['crowdhandler_settings_field_is_enabled'])) ? '1' : '0';
2526
$timestamp = new DateTime();
2627
$formatedTime = $timestamp->format(DateTime::ISO8601);
27-
$headers['x-crowdhandler-info'] = $this->options['crowdhandler_settings_field_public_key'] . '::' . $indexOverride . '::' . $formatedTime;
28+
$headers['x-crowdhandler-info'] = $this->options['crowdhandler_settings_field_public_key'] . '::' . $indexOverride . '::' . $isEnabled . '::' . $formatedTime;
2829
}
2930
return $headers;
3031
}

0 commit comments

Comments
 (0)