Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation of http headers should be case insensitive #326

Closed
planthemann opened this Issue Jan 12, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@planthemann
Copy link

planthemann commented Jan 12, 2018

I'm developing citrus test cases using the XML DSL with the http template. The version of citrus framework is 2.7.2.
I'm trying to validate a http header. The test case fails saying that the header is absent with a com.consol.citrus.exceptions.ValidationException, although I know it is present. I suspect that validation is done in a case sensitive way. RFC 7230 states: 'Each header field consists of a case-insensitive field name followed by a colon (":"), optional leading whitespace, the field value, and optional trailing whitespace.'
To check my header value, I'm using the following: inside the (http:receive-response/http:headers) element, I have this:
<http:header name="myCustomHeader" value="myCustomValue" />

What should I do to make the check case insensitive?

@christophd

This comment has been minimized.

Copy link
Member

christophd commented Jan 12, 2018

@christophd

This comment has been minimized.

Copy link
Member

christophd commented Jan 12, 2018

Ah, you are talking about the header name to be case insensitive right? I have to investigate on that

@christophd christophd added this to the v2.7.3 milestone Jan 14, 2018

@planthemann

This comment has been minimized.

Copy link
Author

planthemann commented Jan 15, 2018

@christophd christophd removed the READY label Jan 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.