how to validate if header attributes has spaces ex- "Cache-Control" and :

Hi Team,

Anybody knows on , how to validate if header attributes has spaces ex- "Cache-Control" and :

ex: correct - "Cache-Control": "max-age=0"

incorrect - "Cache-Control" : "max-age=0" --> do not want to allow this since there is a space between "Cache-Control" and ':'

I would like to raise a fault whenever such scenario occurs..

anybody has any input on how to validate or how to add condition for such cases.

Thanks,

Ganesh

0 1 76
1 REPLY 1

nice! the post very good