From 72ebbe90512bd0dfbe7b2421a213f1422b296d13 Mon Sep 17 00:00:00 2001 From: trollyxia Date: Mon, 11 Mar 2024 15:34:57 +0000 Subject: [PATCH] fix: fix request headers for AuthorizedViews Change-Id: I5dc6c0c79067903fe5c71c0f9d51e40d3f5233ca --- bigtable/bigtable.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bigtable/bigtable.go b/bigtable/bigtable.go index 1c1f5c74533b..403d35c523ea 100644 --- a/bigtable/bigtable.go +++ b/bigtable/bigtable.go @@ -140,10 +140,6 @@ func (c *Client) requestParamsHeaderValue(table string) string { return fmt.Sprintf("table_name=%s&app_profile_id=%s", url.QueryEscape(c.fullTableName(table)), url.QueryEscape(c.appProfile)) } -func (c *Client) requestParamsHeaderValueForAuthorizedView(table string, authorizedView string) string { - return fmt.Sprintf("authorized_view_name=%s&app_profile_id=%s", url.QueryEscape(c.fullAuthorizedViewName(table, authorizedView)), url.QueryEscape(c.appProfile)) -} - // mergeOutgoingMetadata returns a context populated by the existing outgoing // metadata merged with the provided mds. func mergeOutgoingMetadata(ctx context.Context, mds ...metadata.MD) context.Context { @@ -207,7 +203,7 @@ func (c *Client) OpenAuthorizedView(table, authorizedView string) TableApi { table: table, md: metadata.Join(metadata.Pairs( resourcePrefixHeader, c.fullAuthorizedViewName(table, authorizedView), - requestParamsHeader, c.requestParamsHeaderValueForAuthorizedView(table, authorizedView), + requestParamsHeader, c.requestParamsHeaderValue(table), ), btopt.WithFeatureFlags()), authorizedView: authorizedView, }}