[OpenSIPS-Devel] [opensips] Make sure httpd can recognize Content-Type headers with parameters. (#517)

Bogdan Andrei IANCU notifications at github.com
Wed May 20 16:46:13 CEST 2015


@staskobzar , you need to keep the strcasecmp() instead of strncasecmp(). If you get a Content-Type: text/xmlX ; bla=foo ; after param stripping and trimming, the "value" will be 'text/xmlX', that will match "text/xml" with strncasecmp() and will not with strcasecmp(). And it should not match.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/517#issuecomment-103911959
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150520/890c4aca/attachment.htm>


More information about the Devel mailing list