From d79f1321a788a71b7677c86c83c4a66236349c84 Mon Sep 17 00:00:00 2001 From: yungu0010 Date: Mon, 13 May 2024 23:02:19 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20#252=20-=20=EB=84=A4=ED=8A=B8=EC=9B=8C?= =?UTF-8?q?=ED=81=AC=20=EC=83=81=EC=88=98=20=EC=82=AC=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS-NOTTODO/iOS-NOTTODO/Network/Service/BaseAPI.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iOS-NOTTODO/iOS-NOTTODO/Network/Service/BaseAPI.swift b/iOS-NOTTODO/iOS-NOTTODO/Network/Service/BaseAPI.swift index 239fa320..05a6a339 100644 --- a/iOS-NOTTODO/iOS-NOTTODO/Network/Service/BaseAPI.swift +++ b/iOS-NOTTODO/iOS-NOTTODO/Network/Service/BaseAPI.swift @@ -60,10 +60,9 @@ public enum HeaderType { public var value: [String: String] { switch self { case .json: - return ["Content-Type": "application/json"] + return NetworkConstant.noTokenHeader case .jsonWithToken: - return ["Content-Type": "application/json", - "Authorization": "\(KeychainUtil.getAccessToken())"] + return NetworkConstant.hasTokenHeader } } }