Skip to content

Commit

Permalink
[#15] Request 포맷 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jayden000106 committed Feb 19, 2024
1 parent 6b11412 commit 477ce0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/YLS-iOS/YLS_iOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ extension YLS {
request.httpMethod = "PUT"
request.addValue("application/json", forHTTPHeaderField: "Content-Type")
do {
let events = self.caches.map { $0.fetchDictionary() }
let events = ["logRequestList": self.caches.map { $0.fetchDictionary() }]
self.caches = []
let data = try JSONSerialization.data(withJSONObject: events, options: .prettyPrinted)
request.httpBody = data
Expand Down

0 comments on commit 477ce0c

Please sign in to comment.