Skip to content

Commit

Permalink
Remove duplicate header (#971)
Browse files Browse the repository at this point in the history
Co-authored-by: Giuliano Mega <[email protected]>
  • Loading branch information
2-towns and gmega authored Jan 16, 2025
1 parent 4606726 commit 2ad7c31
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 @@ -274,10 +274,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 2ad7c31

Please sign in to comment.