mia-platform/custom-plugin-lib

getHttpClient from service does not forward mia headers

FabioNappi opened this issue · 3 comments

The docs do not discriminate between the getHttpClient functions decorated to the fastify instance and request instance, but there is a difference indeed.

Using the above function decorated to the fastify instance, the obtained client will not forward Mia headers; while using the same function decorated to the request instance, the obtained client will actually forward those headers.

I would expect that the client obtained from the fastify instance is still able to forward mia headers or at least point this difference in the docs.

environment

custom-plugin-lib: 5.1.3

Is it not possible to access to the headers from the instance. So, we should add the limitation in docs I suppose. Can you open a PR?

Here it is #349

Merged into master.