Skip to content

Commit

Permalink
t0112: update
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Jun 28, 2023
1 parent 7e3d50a commit 09d2458
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/path_gateway_unixfs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,13 +446,15 @@ func TestCors(t *testing.T) {
Response: Expect().
Headers(
Header("Access-Control-Allow-Origin").Equals("*"),
Header("Access-Control-Allow-Methods").Has("GET"),
Header("Access-Control-Allow-Headers").Has("Range"),
Header("Access-Control-Allow-Methods").Has("GET", "HEAD", "OPTIONS"),
Header("Access-Control-Allow-Headers").Has("Content-Type", "Range", "User-Agent", "X-Requested-With"),
Header("Access-Control-Expose-Headers").Has(
"Content-Range",
"Content-Length",
"X-Ipfs-Path",
"X-Ipfs-Roots",
"X-Chunked-Output",
"X-Stream-Output",
),
),
},
Expand All @@ -464,13 +466,15 @@ func TestCors(t *testing.T) {
Response: Expect().
Headers(
Header("Access-Control-Allow-Origin").Equals("*"),
Header("Access-Control-Allow-Methods").Has("GET"),
Header("Access-Control-Allow-Headers").Has("Range"),
Header("Access-Control-Allow-Methods").Has("GET", "HEAD", "OPTIONS"),
Header("Access-Control-Allow-Headers").Has("Content-Type", "Range", "User-Agent", "X-Requested-With"),
Header("Access-Control-Expose-Headers").Has(
"Content-Range",
"Content-Length",
"X-Ipfs-Path",
"X-Ipfs-Roots",
"X-Chunked-Output",
"X-Stream-Output",
),
),
},
Expand Down

0 comments on commit 09d2458

Please sign in to comment.