Removes unecessary type checking
Removes unecessary condition
Adds XhrTransport test to send data without http headers