Fix headers on api wrapper