Hi, I was trying to test out the response headers. And the response header is something like "X-TV-subscriptionId": "12345678", and I tried to expect_header "X-TV-subscriptionId", "12345678" and it returns false, it will return true only if I do expect_header "x_tv_subscriptionid", "12345678".
Wondering is this behaviour intended? As headers are case sensitives anyway, case switch is not an issue for me. But converting hyphen into underscore is breaking my test.
Many thanks in advance.
Update: looks like even expect_header :X_tv_subscriptionid, "12345678" will return a false? The downscore is not working?
Hi, I was trying to test out the response headers. And the response header is something like
"X-TV-subscriptionId": "12345678"
, and I tried toexpect_header "X-TV-subscriptionId", "12345678"
and it returns false, it will return true only if I doexpect_header "x_tv_subscriptionid", "12345678"
.Wondering is this behaviour intended? As headers are case sensitives anyway, case switch is not an issue for me. But converting hyphen into underscore is breaking my test.
Many thanks in advance.
Update: looks like even
expect_header :X_tv_subscriptionid, "12345678"
will return a false? The downscore is not working?