From 81a7811368fcb32776698de7aae392e1956a2aa4 Mon Sep 17 00:00:00 2001 From: Ronald Holshausen Date: Wed, 21 Aug 2024 10:38:00 +1000 Subject: [PATCH] fix: Prototbuf content type values now include the package name --- examples/protobuf/protobuf-provider/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/protobuf/protobuf-provider/main.go b/examples/protobuf/protobuf-provider/main.go index 7fc0bffa..10af7fd4 100644 --- a/examples/protobuf/protobuf-provider/main.go +++ b/examples/protobuf/protobuf-provider/main.go @@ -28,7 +28,7 @@ func main() { switch body.Description { case "Configure Interaction Response": log.Println("Configure Interaction Response") - w.Header().Add("Content-Type", "application/protobuf; message=InteractionResponse") + w.Header().Add("Content-Type", "application/protobuf; message=.io.pact.plugin.InteractionResponse") genValue, _ := structpb.NewStruct(map[string]interface{}{ "format": "YYYY-MM-DD", @@ -70,7 +70,7 @@ func main() { default: log.Println("InitPluginRequest default") - w.Header().Add("Content-Type", "application/protobuf; message=InitPluginRequest") + w.Header().Add("Content-Type", "application/protobuf; message=.io.pact.plugin.InitPluginRequest") init := &io_pact_plugin.InitPluginRequest{ Implementation: "Go Provider", Version: "0.0.0",