v0.0.15 | region 헤더 "null" 문자열 방어 처리
All checks were successful
Build And Test / build-and-push (push) Successful in 2m5s
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:
@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user