@@ -344,7 +344,7 @@ def read_rows(
344344 if regex_match and regex_match .group ("table_name" ):
345345 header_params ["table_name" ] = regex_match .group ("table_name" )
346346
347- if request .app_profile_id :
347+ if request .app_profile_id is not None : # temporary fix: support empty headers for btql routing
348348 header_params ["app_profile_id" ] = request .app_profile_id
349349
350350 routing_param_regex = re .compile (
@@ -463,7 +463,7 @@ def sample_row_keys(
463463 if regex_match and regex_match .group ("table_name" ):
464464 header_params ["table_name" ] = regex_match .group ("table_name" )
465465
466- if request .app_profile_id :
466+ if request .app_profile_id is not None : # temporary fix: support empty headers for btql routing
467467 header_params ["app_profile_id" ] = request .app_profile_id
468468
469469 routing_param_regex = re .compile (
@@ -603,7 +603,7 @@ async def mutate_row(
603603 if regex_match and regex_match .group ("table_name" ):
604604 header_params ["table_name" ] = regex_match .group ("table_name" )
605605
606- if request .app_profile_id :
606+ if request .app_profile_id is not None : # temporary fix: support empty headers for btql routing
607607 header_params ["app_profile_id" ] = request .app_profile_id
608608
609609 routing_param_regex = re .compile (
@@ -737,7 +737,7 @@ def mutate_rows(
737737 if regex_match and regex_match .group ("table_name" ):
738738 header_params ["table_name" ] = regex_match .group ("table_name" )
739739
740- if request .app_profile_id :
740+ if request .app_profile_id is not None : # temporary fix: support empty headers for btql routing
741741 header_params ["app_profile_id" ] = request .app_profile_id
742742
743743 routing_param_regex = re .compile (
@@ -914,7 +914,7 @@ async def check_and_mutate_row(
914914 if regex_match and regex_match .group ("table_name" ):
915915 header_params ["table_name" ] = regex_match .group ("table_name" )
916916
917- if request .app_profile_id :
917+ if request .app_profile_id is not None : # temporary fix: support empty headers for btql routing
918918 header_params ["app_profile_id" ] = request .app_profile_id
919919
920920 routing_param_regex = re .compile (
@@ -1028,7 +1028,7 @@ async def ping_and_warm(
10281028 if regex_match and regex_match .group ("name" ):
10291029 header_params ["name" ] = regex_match .group ("name" )
10301030
1031- if request .app_profile_id :
1031+ if request .app_profile_id is not None : # temporary fix: support empty headers for btql routing
10321032 header_params ["app_profile_id" ] = request .app_profile_id
10331033
10341034 if header_params :
@@ -1165,7 +1165,7 @@ async def read_modify_write_row(
11651165 if regex_match and regex_match .group ("table_name" ):
11661166 header_params ["table_name" ] = regex_match .group ("table_name" )
11671167
1168- if request .app_profile_id :
1168+ if request .app_profile_id is not None : # temporary fix: support empty headers for btql routing
11691169 header_params ["app_profile_id" ] = request .app_profile_id
11701170
11711171 routing_param_regex = re .compile (
0 commit comments