Skip to content

Commit

Permalink
fix: add Trailer header to CAR responses
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Oct 10, 2022
1 parent 052d797 commit eba7ccd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/corehttp/gateway_handler_car.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func (i *gatewayHandler) serveCAR(ctx context.Context, w http.ResponseWriter, r

w.Header().Set("Content-Type", "application/vnd.ipld.car; version=1")
w.Header().Set("X-Content-Type-Options", "nosniff") // no funny business in the browsers :^)
w.Header().Set("Trailer", "X-Stream-Error")

// Same go-car settings as dag.export command
store := dagStore{dag: i.api.Dag(), ctx: ctx}
Expand Down

0 comments on commit eba7ccd

Please sign in to comment.