Skip to content

Commit

Permalink
change content-type of performance tests to application/json (#2010)
Browse files Browse the repository at this point in the history
* change content-type of performance tests to application/json

* change event body to json type
  • Loading branch information
capri-xiyue authored and knative-prow-robot committed Oct 8, 2019
1 parent 17e849a commit b2e44b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/common/cloudevents_vegeta_targeter.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ func (cet CloudEventsTargeter) VegetaTargeter() vegeta.Targeter {
t.Header.Set("Ce-Source", cet.eventSource)
t.Header.Set("Ce-Specversion", "0.2")

t.Header.Set("Content-Type", "text/plain")
t.Header.Set("Content-Type", "application/json")

t.Body = []byte(generateRandString(cet.msgSize))
t.Body = []byte("\"" + generateRandString(cet.msgSize) + "\"")

return nil
}
Expand Down

0 comments on commit b2e44b5

Please sign in to comment.