add x-instance-identity header

This commit is contained in:
ykomissarov committed 2019-11-19 10:44:44 +03:00
1 parent 9eb5a3030b
commit f9138cbbfe
3 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -1 +1 @@
1.1.0
1.1.1
+2
View File
@@ -1,3 +1,5 @@
## 1.1.1
* add x-instance-identity header
## 1.1.0
* add token verification via JWT
* add accounting for applications
+4
View File
@@ -108,6 +108,10 @@ func Do(ctx *fasthttp.RequestCtx) (int32, error) {
}
}
//TODO backward capability for isp-config-service 1.x.x
uuid := config.Get().(*conf.Configuration).InstanceUuid
ctx.Request.Header.Set(utils.InstanceIdHeader, uuid)
return appId, nil
}