Skip to content

Commit

Permalink
fixing headers
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollman committed Aug 9, 2023
1 parent 85c2d4f commit d2d02fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion materializationengine/blueprints/client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ def create_query_response(
opt = pa.ipc.IpcWriteOptions(compression=compression)
with pa.ipc.new_stream(sink, batch.schema, options=opt) as writer:
writer.write_batch(batch)
return send_file(BytesIO(sink.getvalue().to_pybytes()), "data.arrow")
response = send_file(BytesIO(sink.getvalue().to_pybytes()), "data.arrow")
response.headers = headers
return response
# headers = add_warnings_to_headers(
# headers,
# [
Expand Down

0 comments on commit d2d02fe

Please sign in to comment.