You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/03/27 18:21:21 UTC

[jira] [Commented] (TS-2672) TSMimeHdrFieldDestroy should not assert on removed fields

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

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

Commit b92bbc1ed0cf2b0aef00531e2b9e03a9ef46f2e2 in trafficserver's branch refs/heads/master from [~jpeach@apache.org]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=b92bbc1 ]

TS-2672: allow mime_hdr_field_detach to be called on detached MIME headers

Allow mime_hdr_field_detach() to be called on detached MIME headers
so that TSMimeHdrFieldDestroy() can be called on a field that has
been detached by TSMimeHdrFieldRemove(). This matches the behavior
of mime_hdr_field_attach(), which silently ignores calls to attach
fields that are not detached.


> TSMimeHdrFieldDestroy should not assert on removed fields
> ---------------------------------------------------------
>
>                 Key: TS-2672
>                 URL: https://issues.apache.org/jira/browse/TS-2672
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: MIME, TS API
>            Reporter: James Peach
>            Assignee: James Peach
>            Priority: Minor
>             Fix For: 5.0.0
>
>
> In debug mode, {{TSMimeHdrFieldDestroy}} triggers an assertion if you call it on a MIME header that was removed using {{TSMimeHdrFieldRemove}}. There's really no need to he that harsh.



--
This message was sent by Atlassian JIRA
(v6.2#6252)