Closed markovujo closed 6 years ago
@markovujo - For some reason the HTTP client we use under the hood wants the value of the Authorization header to be a List of Strings, not just a string.
It looks like our client builder's withCustomHeaders
method took a Map<String, String>, so we have changed it to take a Map<String, Object>.
As of version 3.3.1, you should now be able to pass your Authorization header by wrapping the value in a List object.
@MouaYing Thank you for the quick fix. Much appreciated.
Thank you for including custom headers in the new 3.3.0 release.
I noticed an issue if I use the Authorization custom header(s) with this package:
Exception: java.lang.IllegalArgumentException: Can not set java.util.List field com.google.api.client.http.HttpHeaders.authorization to java.lang.String.
Any thoughts on how I would pass custom Authorization headers to the client?
Thanks for your time.
Marko Vujovic