Skip to content

Commit

Permalink
chore: advertise gzip support to transformer through X-Feature-Gzip-S…
Browse files Browse the repository at this point in the history
…upport header (#3990)
  • Loading branch information
Gauravudia authored Oct 18, 2023
1 parent 8c3a723 commit bce584d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions processor/transformer/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ func (trans *handle) doPost(ctx context.Context, rawJSON []byte, url, stage stri
}

req.Header.Set("Content-Type", "application/json; charset=utf-8")
req.Header.Set("X-Feature-Gzip-Support", "?1")
// Header to let transformer know that the client understands event filter code
req.Header.Set("X-Feature-Filter-Code", "?1")

Expand Down
1 change: 1 addition & 0 deletions router/transformer/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func (trans *handle) Transform(transformType string, transformMessage *types.Tra
}

req.Header.Set("Content-Type", "application/json; charset=utf-8")
req.Header.Set("X-Feature-Gzip-Support", "?1")
// Header to let transformer know that the client understands event filter code
req.Header.Set("X-Feature-Filter-Code", "?1")

Expand Down

0 comments on commit bce584d

Please sign in to comment.