[ 
https://issues.apache.org/jira/browse/TS-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13826209#comment-13826209
 ] 

ASF subversion and git services commented on TS-2360:
-----------------------------------------------------

Commit 7878e058b154cfe43e52fd0bdd1e327583cf58fc in branch refs/heads/master 
from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=7878e05 ]

TS-2360 Fix usage of TSMimeHdrFieldValueStringGet() in some plugins.

This also adds Sphinx docs for the TSMimeHdrFieldValueStringGet() and
family of APIs. Finally, it also adds a regression test for the -1
IDX argument.


> Fix usage of TSMimeHdrFieldValueStringGet() in some plugins
> -----------------------------------------------------------
>
>                 Key: TS-2360
>                 URL: https://issues.apache.org/jira/browse/TS-2360
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Documentation, Plugins
>            Reporter: Leif Hedstrom
>            Assignee: Leif Hedstrom
>             Fix For: 4.2.0
>
>
> TSMimeHdrFieldValueStringGet() takes an argument -1 for index, which returns 
> the entire header, not just the first portion. This only affects the cases 
> where headers have comma separated values, but we should do it consistently.
> This is an old feature / behavior of the API, I'm not sure why it is not 
> documented.  So lets document it as well ;).



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to