tektoncd / triggers

Event triggering with Tekton!
Apache License 2.0
552 stars 416 forks source link

Content-Type isn't send to Interceptor #1614

Closed khrm closed 4 months ago

khrm commented 1 year ago

Expected Behavior

Content-Type should be sent to Interceptor when making a POST request. Some of web frameworks in other languages expect this header.

Actual Behavior

At present, when making a POST request to the interceptor, we don't set Content-Type header.

khrm commented 1 year ago

/assign @khrm

khrm commented 1 year ago

/cc @ggallen

khrm commented 1 year ago

@ggallen Do we need this? How did you solve this? Was there some issue with the interceptor that you have written?

ggallen commented 1 year ago

Yes, this is an actual bug. To work around it we have a filter that is adding the required header.