[ 
https://issues.apache.org/jira/browse/TS-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leif Hedstrom updated TS-746:
-----------------------------

    Attachment: TS-746.diff

I'm thinking of an approach to change the semantics of these URL setter APIs 
slightly, to have a NULL string argument mean "nuke me completely". E.g.

TSUrlHttpQuerySet(rri->requestBufp, rri->requestUrl, NULL, 0);


See proposed patch for details. This has the advantage that no APIs changes, 
and there are no changes to the core (the core already handles the NULL pointer 
properly).

> Not possible to completel delete e.g. the Query part of a URL via plugins
> -------------------------------------------------------------------------
>
>                 Key: TS-746
>                 URL: https://issues.apache.org/jira/browse/TS-746
>             Project: Traffic Server
>          Issue Type: Improvement
>            Reporter: Leif Hedstrom
>            Assignee: Leif Hedstrom
>             Fix For: 2.1.8
>
>         Attachments: TS-746.diff
>
>
> If you use an API call like
> {code}
> TSUrlHttpQuerySet(rri->requestBufp, rri->requestUrl, "", 0);
> {code}
> the resulting request will still include a '?' e.g.
> {code}
> GET /? HTTP/1.1
> {code}
> I believe the same is true for other similar URL APIs matrix parameters and 
> port. We really ought to have a way to completely delete the component.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to