| @@ -141,9 +141,11 @@ | ||
| 141 | 141 | |
| 142 | 142 | $res = wp_remote_get( |
| 143 | 143 | home_url( '/' ), |
| 144 | 144 | array( |
| 145 | - 'headers' => array( 'Accept-Encoding' => 'gzip' ), | |
| 145 | + // WordPress's own UA, which firewalls let through; the header | |
| 146 | + // keeps this probe out of analytics. | |
| 147 | + 'headers' => Self_Traffic::headers( array( 'Accept-Encoding' => 'gzip' ) ), | |
| 146 | 148 | // 3s wasn't enough to pull a full homepage on a busy shared |
| 147 | 149 | // host, and every timeout used to read as "gzip is broken". |
| 148 | 150 | 'timeout' => 5, |
| 149 | 151 | // Loopback to our own hostname; staging boxes routinely have |