| Author | Dave Jarvis <email> |
|---|---|
| Date | 2026-02-18 23:44:32 GMT-0800 |
| Commit | f5b2c4de3378d0fb1b959be1b948f4bd25fd6cc1 |
| Parent | 31fd02e |
| header( 'Cache-Control: no-cache' ); | ||
| - $input = file_get_contents( 'php://input' ); | ||
| - $wants = []; | ||
| - $haves = []; | ||
| - $offset = 0; | ||
| + $input = file_get_contents( 'php://input' ); | ||
| + $wants = []; | ||
| + $haves = []; | ||
| + $offset = 0; | ||
| + $isGzip = isset( $_SERVER['HTTP_CONTENT_ENCODING'] ) && | ||
| + $_SERVER['HTTP_CONTENT_ENCODING'] === 'gzip'; | ||
| + | ||
| + if( $isGzip ) { | ||
| + $decoded = gzdecode( $input ); | ||
| + | ||
| + if( is_string( $decoded ) ) { | ||
| + $input = $decoded; | ||
| + } | ||
| + } | ||
| while( $offset < strlen( $input ) ) { |
| Delta | 14 lines added, 4 lines removed, 10-line increase |
|---|