Merge branch 'v3' into v3
This commit is contained in:
		| @@ -1,10 +1,9 @@ | |||||||
| # Micro | # Micro | ||||||
|  |  | ||||||
| [](https://opensource.org/licenses/Apache-2.0) | [](https://opensource.org/licenses/Apache-2.0) | ||||||
| [](https://pkg.go.dev/go.unistack.org/micro/v3?tab=overview) | [](https://pkg.go.dev/go.unistack.org/micro/v3?tab=overview) | ||||||
| [](https://git.unistack.org/unistack-org/micro/actions?query=workflow%3Abuild+branch%3Av3+event%3Apush) | [](https://git.unistack.org/unistack-org/micro/actions?query=workflow%3Abuild+branch%3Av3+event%3Apush) | ||||||
| [](https://goreportcard.com/report/go.unistack.org/micro/v3)  | [](https://goreportcard.com/report/go.unistack.org/micro/v3) | ||||||
|  |  | ||||||
|  |  | ||||||
| Micro is a standard library for microservices. | Micro is a standard library for microservices. | ||||||
|  |  | ||||||
|   | |||||||
| @@ -588,7 +588,6 @@ func (n *noopClient) publish(ctx context.Context, ps []Message, opts ...PublishO | |||||||
|  |  | ||||||
| 	for _, p := range ps { | 	for _, p := range ps { | ||||||
| 		md := metadata.Copy(omd) | 		md := metadata.Copy(omd) | ||||||
| 		md[metadata.HeaderContentType] = p.ContentType() |  | ||||||
| 		topic := p.Topic() | 		topic := p.Topic() | ||||||
| 		if len(exchange) > 0 { | 		if len(exchange) > 0 { | ||||||
| 			topic = exchange | 			topic = exchange | ||||||
| @@ -600,6 +599,8 @@ func (n *noopClient) publish(ctx context.Context, ps []Message, opts ...PublishO | |||||||
| 			md.Set(k, v) | 			md.Set(k, v) | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|  | 		md[metadata.HeaderContentType] = p.ContentType() | ||||||
|  |  | ||||||
| 		var body []byte | 		var body []byte | ||||||
|  |  | ||||||
| 		// passed in raw data | 		// passed in raw data | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user