Skip to content

Commit

Permalink
Fix downcasting to v0.3 from v1.0 (#272)
Browse files Browse the repository at this point in the history
* fixing v1 codec

Signed-off-by: nachocano <nachocano@google.com>
  • Loading branch information
nachocano authored and n3wscott committed Dec 14, 2019
1 parent 9caf28f commit 4236801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloudevents/transport/http/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (c *Codec) convertEvent(event *cloudevents.Event) (*cloudevents.Event, erro
event.Context = ca
return event, nil
case BinaryV1, StructuredV1, BatchedV1:
ca := event.Context.AsV03()
ca := event.Context.AsV1()
event.Context = ca
return event, nil
default:
Expand Down

0 comments on commit 4236801

Please sign in to comment.