johnbillion / query-monitor

The developer tools panel for WordPress
https://querymonitor.com
GNU General Public License v2.0
1.56k stars 203 forks source link

Misleading redirect shown for HTTP API request #738

Open johnbillion opened 1 year ago

johnbillion commented 1 year ago

An HTTP API request to the Gravity Forms API with a trailing question mark gets marked as having been redirected on the receiving end because the trailing question mark is stripped somewhere. Need to investigate why this is flagged as a redirect.

crstauf commented 1 year ago

It would technically be a redirect, would it not?

crstauf commented 1 year ago

Image

crstauf commented 1 year ago

@johnbillion Fixed identifying as a redirect in #790. Would you also want the ? removed from the URL if the query string is empty?

2023-07-10T222821
add_action( 'init', static function () {
    wp_remote_get( 'https://querymonitor.com/?' );
} );
crstauf commented 1 year ago

Would you also want the ? removed from the URL if the query string is empty?

Went ahead and removed it in 3cfdeecd9409b5f6558e780ea131841769682966.