Fix format of data sent to request handler