move sendHeaders to Http