Skip to content

Conversation

@UBiqube-ydu
Copy link
Contributor

No description provided.

@UBiqube-ydu UBiqube-ydu requested a review from a team as a code owner September 24, 2025 08:46
@abr-ubiqube abr-ubiqube requested a review from Copilot September 24, 2025 08:48
@UBiqube-ydu UBiqube-ydu merged commit 938854a into master Sep 24, 2025
1 check passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the placement of debug log statements in two adapter classes by moving them to execute after the HTTP header list is properly initialized.

  • Moved debug echo statements from before to after $this->http_header_list assignment
  • Ensures the log output shows the actual configured headers instead of an uninitialized variable

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
adapters/zscaler/connect.php Moved debug log statement to print headers after they are initialized
adapters/paloalto_prisma/connect.php Moved debug log statement to print headers after they are initialized

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

'DELETE' => array('Accept: application/json'),
),
);
echo "connect: setting HTTP header to: " . print_r($this->http_header_list, true) . "\n";
Copy link

Copilot AI Sep 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This debug echo statement should use a proper logging mechanism instead of direct output. Direct echo statements in production code can interfere with HTTP responses and API functionality.

Copilot uses AI. Check for mistakes.
'DELETE' => array('Accept: application/json'),
),
);
echo "connect: setting HTTP header to: " . print_r($this->http_header_list, true) . "\n";
Copy link

Copilot AI Sep 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This debug echo statement should use a proper logging mechanism instead of direct output. Direct echo statements in production code can interfere with HTTP responses and API functionality.

Suggested change
echo "connect: setting HTTP header to: " . print_r($this->http_header_list, true) . "\n";
error_log("connect: setting HTTP header to: " . print_r($this->http_header_list, true));

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants