Fixed headers response data
This commit is contained in:
parent
a98c4b429f
commit
5d1c074998
|
@ -25,7 +25,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<p><strong><?php _e( 'Status', 'woocommerce' ); ?>: </strong><?php echo esc_html( $log['summary'] ); ?></p>
|
||||
<p><strong><?php _e( 'Headers', 'woocommerce' ); ?>:</strong></p>
|
||||
<ul>
|
||||
<?php foreach ( (array) $log['response_headers'] as $key => $value ) : ?>
|
||||
<?php $response_headers = is_callable( array( $log['response_headers'], 'getAll' ) ) ? $log['response_headers']->getAll() : $log['response_headers']; ?>
|
||||
<?php foreach ( (array) $response_headers as $key => $value ) : ?>
|
||||
<li><strong><em><?php echo strtolower( esc_html( $key ) ); ?>: </em></strong><code><?php echo esc_html( $value ); ?></code></li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue