Just found this bug in beta-1 (also applies to `ap...
# ktor
c
Just found this bug in beta-1 (also applies to
appendIfNameAndValueAbsent()
)
Copy code
public fun StringValuesBuilder.appendIfNameAbsent(name: String, value: String): StringValuesBuilder = apply {
    if (!contains(name)) return@apply
    append(name, value)
}
I think that
if
should be inverted
not sure how that should be reported - there doesn’t seem to be a beta-1 version in youtrack (assuming that’s where it should be reported?)
h
Yes, youtrack is the right place. Just create two tickets, one for the bug and another for the version 😄
c
done 👍
r
OMG, so embarrassing 🤦 thanks for noticing, will open PR shortly
🙏 2
h
Maybe with a test? 😄
r
There was a test that used this method, but I used
headers.get(header)
instead of
headers.getAll(header)
. Even more embarrassing 😃
😄 2