- Timestamp:
- 03/11/2021 05:36:27 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/dotorg/trac/pr/webhook.php
r10736 r10809 26 26 27 27 verify_signature(); 28 29 if ( empty( $_SERVER['CONTENT_TYPE'] ) || 'application/json' !== $_SERVER['CONTENT_TYPE'] ) { 30 header( 'HTTP/1.0 400 Bad Request', true, 400 ); 31 die( 'Please set the Content type to application/json' ); 32 } 28 33 29 34 $payload = json_decode( file_get_contents( 'php://input' ) );
Note: See TracChangeset
for help on using the changeset viewer.