Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. $content_type = isset( $headers['Content-Type'] ) ? explode( ';', $headers['Content-Type'] ) : 'application/json';
  2. $content_type = is_array( $content_type ) ? $content_type[0] : $content_type;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement