Closed TaridaGeorge closed 1 month ago
Headers from the incoming requests are not attached to HTTP/2 requests for gRPC. Such an option to forward HTTP headers is only available for HTTP hooks (see the flag).
However, the headers from the incoming requests are also provided in the payload provided via gRPC: https://github.com/tus/tusd/blob/15f05c021c9770dc0cd2818aa4ef44b9e361f5b2/pkg/hooks/grpc/proto/hook.proto#L98-L99
Indeed. I've created a PR to handle those shortcomings. Please see https://github.com/tus/tusd/pull/1114
Only this line need to be modified:
I have an angular app which has an upload file feature. On the frontend side I'm using tus-js-client, the tusd server is v2.4.0 and the hook is grpc. From the frontend, I upload the file with the Authorization header but the tusd doesn't seem to pass them to the grpc server that I have written in Java. Is there an option that I should enable in order for the Authorization token to be passed to my java app?
Is there an option to enable more logging in tusd in order for me to see also the headers that are send from tus-js-client to it? In my java app, I can see that on the grpc hook I have no headers.
Setup details Please provide following details, if applicable to your situation: