v0.0.15 | region 헤더 "null" 문자열 방어 처리
All checks were successful
Build And Test / build-and-push (push) Successful in 2m5s

- X-NHN-Region 헤더가 "null" 문자열일 때 kr2로 폴백

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-17 14:38:14 +09:00
parent 71fa1d3742
commit 839a1316a4
2 changed files with 3 additions and 2 deletions

View File

@ -111,8 +111,9 @@ tenant_header = openapi.Parameter(
def get_nhn_headers(request):
"""요청 헤더에서 NHN Cloud 정보 추출"""
raw_region = request.headers.get("X-NHN-Region", "kr2")
headers = {
"region": request.headers.get("X-NHN-Region", "kr2"),
"region": raw_region if raw_region and raw_region != "null" else "kr2",
"token": request.headers.get("X-NHN-Token"),
"tenant_id": request.headers.get("X-NHN-Tenant-ID"),
"storage_account": request.headers.get("X-NHN-Storage-Account"),

View File

@ -1 +1 @@
v0.0.14
v0.0.15