Skip to content

Commit

Permalink
fix: Prototbuf content type values now include the package name
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Aug 21, 2024
1 parent 8ae3c6f commit 81a7811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/protobuf/protobuf-provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 81a7811

Please sign in to comment.