Skip to content

Commit 0c26d6e

Browse files
committed
fix: User-Agent 헤더 버전을 __version__에서 동적으로 참조하도록 수정
1 parent e090fba commit 0c26d6e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/datagsm_openapi/_http.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import httpx
66

7+
from . import __version__
78
from .exceptions import (
89
BadRequestException,
910
DataGsmException,
@@ -68,7 +69,7 @@ def _get_headers(self) -> dict[str, str]:
6869
return {
6970
"X-API-KEY": self.api_key,
7071
"Accept": "application/json",
71-
"User-Agent": "datagsm-openapi-sdk-python/0.1.0",
72+
"User-Agent": f"datagsm-openapi-sdk-python/{__version__}",
7273
}
7374

7475
def _get_client(self) -> httpx.Client:

0 commit comments

Comments
 (0)