Skip to content

Commit

Permalink
[chore] #152 이미지 user agent Request 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Nov 17, 2024
1 parent e209baa commit 1b20696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions Projects/DSKit/Sources/Components/PokitLinkCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,7 @@ public struct PokitLinkCard<Item: PokitLinkCardItem>: View {

@MainActor
private func thumbleNail(url: URL) -> some View {
var request = URLRequest(url: url)
request.setValue(
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36",
forHTTPHeaderField: "User-Agent"
)

return LazyImage(request: .init(urlRequest: request)) { phase in
LazyImage(url: url) { phase in
Group {
if let image = phase.image {
image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,7 @@ extension RemindView {

@MainActor
private func recommendedContentCellImage(url: URL) -> some View {
var request = URLRequest(url: url)
request.setValue(
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36",
forHTTPHeaderField: "User-Agent"
)

return LazyImage(request: .init(urlRequest: request)) { phase in
LazyImage(url: url) { phase in
if let image = phase.image {
image
.resizable()
Expand Down

0 comments on commit 1b20696

Please sign in to comment.