Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
| ... | ... |
@@ -90,6 +90,10 @@ type Builder struct {
|
| 90 | 90 |
func New(opt Opt) (*Builder, error) {
|
| 91 | 91 |
reqHandler := newReqBodyHandler(tracing.DefaultTransport) |
| 92 | 92 |
|
| 93 |
+ if opt.IdentityMapping != nil && opt.IdentityMapping.Empty() {
|
|
| 94 |
+ opt.IdentityMapping = nil |
|
| 95 |
+ } |
|
| 96 |
+ |
|
| 93 | 97 |
c, err := newController(reqHandler, opt) |
| 94 | 98 |
if err != nil {
|
| 95 | 99 |
return nil, err |