Skip to content

Commit

Permalink
Set default FIWARE Service Path to '/' in rm command
Browse files Browse the repository at this point in the history
  • Loading branch information
fisuda committed Jul 17, 2021
1 parent 218f993 commit 6f0229d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NGSI Go v0.8.4-next

- Improve: Set default FIWARE Service Path to "/" in rm command (#179)
- Hardening: Support Kong (#178)
- Hardening: Add insecureSkipVerify option (#177)
- Fix: Fix URL path join (#176)
Expand Down
3 changes: 3 additions & 0 deletions internal/ngsicmd/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ func remove(c *cli.Context) error {
if c.IsSet("link") {
return &ngsiCmdError{funcName, 5, "can't specify --link option on NGSIv2", nil}
}
if client.Scope == "" {
client.Headers["Fiware-ServicePath"] = "/"
}
if c.Bool("ngsiV1") {
f = removeV1
} else {
Expand Down

0 comments on commit 6f0229d

Please sign in to comment.