Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $content_type = isset( $headers['Content-Type'] ) ? explode( ';', $headers['Content-Type'] ) : 'application/json';
- $content_type = is_array( $content_type ) ? $content_type[0] : $content_type;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement