Fix push and mime type detection.