added fallback to headers key to look for Content-Type string