Skip to content

Commit

Permalink
Remove duplicated header (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
2-towns authored Oct 25, 2024
1 parent 4006851 commit bcc1468
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions codex/rest/api.nim
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,6 @@ proc initDataApi(node: CodexNodeRef, repoStore: RepoStore, router: var RestRoute
Http400,
$cid.error(), headers = headers)

if corsOrigin =? allowedOrigin:
resp.setCorsHeaders("GET", corsOrigin)
resp.setHeader("Access-Control-Headers", "X-Requested-With")

without manifest =? (await node.fetchManifest(cid.get())), err:
error "Failed to fetch manifest", err = err.msg
return RestApiResponse.error(
Expand Down

0 comments on commit bcc1468

Please sign in to comment.