Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 0bdcc60c4c8f0587af610c1cbf08e7fa6dac750e)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -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 |