Octavi00 commented on code in PR #11812:
URL: https://github.com/apache/gravitino/pull/11812#discussion_r3592533636
##########
web-v2/web/src/lib/api/auth/index.js:
##########
@@ -44,3 +44,17 @@ export const loginApi = (url, params) => {
{ withToken: false }
)
}
+
+export const basicLoginApi = basicToken => {
+ return defHttp.get(
+ {
+ url: '/api/version',
+ headers: {
+ Authorization: basicToken,
+ Accept: 'application/vnd.gravitino.v1+json',
+ 'Content-Type': 'application/json'
+ }
Review Comment:
Irrelevant, im no longer implementing headers for 401 responses, and this
was included to do just that. Content type shouldnt cause any issues, so i'd
rather leave it than remove unless specifically requested
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]