fixed not sending headers with query