Skip to content

Commit

Permalink
add SDK+version to cohort request header
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc committed Aug 7, 2024
1 parent 06e693e commit a9006cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/amplitude_experiment/cohort/cohort_download_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import json
from http.client import HTTPResponse
from typing import Optional
from ..version import __version__

from .cohort import Cohort
from ..connection_pool import HTTPConnectionPool
Expand Down Expand Up @@ -67,6 +68,7 @@ def get_cohort(self, cohort_id: str, cohort: Optional[Cohort]) -> Cohort or None
def _get_cohort_members_request(self, cohort_id: str, last_modified: int) -> HTTPResponse:
headers = {
'Authorization': f'Basic {self._get_basic_auth()}',
'X-Amp-Exp-Library': f"experiment-python-server/{__version__}"
}
conn = self._connection_pool.acquire()
try:
Expand Down

0 comments on commit a9006cf

Please sign in to comment.