Skip to content

Commit 2785378

Browse files
committed
support empty headers
1 parent 03ebb3f commit 2785378

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

google/cloud/bigtable_v2/services/bigtable/async_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,8 @@ def execute_query(
14961496
if regex_match and regex_match.group("name"):
14971497
header_params["name"] = regex_match.group("name")
14981498

1499-
if request.app_profile_id:
1499+
if request.app_profile_id is not None:
1500+
# execute_query currently requires empty header support. TODO: remove after support is added
15001501
header_params["app_profile_id"] = request.app_profile_id
15011502

15021503
if header_params:

google/cloud/bigtable_v2/services/bigtable/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1893,7 +1893,8 @@ def execute_query(
18931893
if regex_match and regex_match.group("name"):
18941894
header_params["name"] = regex_match.group("name")
18951895

1896-
if request.app_profile_id:
1896+
if request.app_profile_id is not None:
1897+
# execute_query currently requires empty header support. TODO: remove after support is adde
18971898
header_params["app_profile_id"] = request.app_profile_id
18981899

18991900
if header_params:

0 commit comments

Comments
 (0)