Skip to content

Commit

Permalink
Merge pull request #1203 from gdams/location
Browse files Browse the repository at this point in the history
fix case sensitive location header
  • Loading branch information
gdams authored Oct 8, 2024
2 parents 42f20c5 + 48f6512 commit c02fc9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class BinaryPathTest : PackageEndpointTest() {
performRequest(path)
.then()
.statusCode(307)
.header("Location", Matchers.startsWith("https://github.com/adoptium/temurin11-binaries/releases/download/"))
.header("location", Matchers.startsWith("https://github.com/adoptium/temurin11-binaries/releases/download/"))
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class InstallerPathTest : PackageEndpointTest() {
performRequest(path)
.then()
.statusCode(307)
.header("Location", Matchers.startsWith("https://github.com/adoptium/temurin11-binaries/releases/download/"))
.header("location", Matchers.startsWith("https://github.com/adoptium/temurin11-binaries/releases/download/"))
}

@Test
Expand All @@ -37,7 +37,7 @@ class InstallerPathTest : PackageEndpointTest() {
performRequest(path)
.then()
.statusCode(307)
.header("Location", Matchers.startsWith("https://github.com/adoptium/temurin11-binaries/releases/download/"))
.header("location", Matchers.startsWith("https://github.com/adoptium/temurin11-binaries/releases/download/"))
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ abstract class PackageEndpointTest : FrontendTest() {
performRequest(path)
.then()
.statusCode(307)
.header("Location", Matchers.startsWith(binary.`package`.link))
.header("location", Matchers.startsWith(binary.`package`.link))
}

protected fun requestSignatureExpecting307(
Expand All @@ -121,7 +121,7 @@ abstract class PackageEndpointTest : FrontendTest() {
performRequest(path)
.then()
.statusCode(307)
.header("Location", Matchers.startsWith(binary.`package`.signature_link))
.header("location", Matchers.startsWith(binary.`package`.signature_link))
}

protected fun requestChecksumExpecting307(
Expand All @@ -135,6 +135,6 @@ abstract class PackageEndpointTest : FrontendTest() {
performRequest(path)
.then()
.statusCode(307)
.header("Location", Matchers.startsWith(binary.`package`.checksum_link))
.header("location", Matchers.startsWith(binary.`package`.checksum_link))
}
}

0 comments on commit c02fc9b

Please sign in to comment.