Skip to content

Commit

Permalink
removeHeader header before adding it to make sure to remove duplicates (
Browse files Browse the repository at this point in the history
#1713)

Signed-off-by: hadia <hadiamohamed.iti@gmail.com>

Signed-off-by: hadia <hadiamohamed.iti@gmail.com>
Co-authored-by: Isabel Martin <arkariang@gmail.com>
  • Loading branch information
hadia and Arkariang committed Dec 1, 2022
1 parent 5085ced commit 37e2647
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -60,6 +60,7 @@ open class PerimeterXClient(private val build: Build) : PerimeterXClientType {
val headers = httpHeaders()?.toMap() ?: emptyMap()

headers.forEach { (key, value) ->
builder?.removeHeader(key)
builder?.addHeader(key, value)
}

Expand Down

0 comments on commit 37e2647

Please sign in to comment.