[ 
https://issues.apache.org/jira/browse/TS-5025?focusedWorklogId=31404&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-31404
 ]

ASF GitHub Bot logged work on TS-5025:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/Nov/16 20:22
            Start Date: 01/Nov/16 20:22
    Worklog Time Spent: 10m 
      Work Description: Github user SolidWallOfCode commented on the issue:

    https://github.com/apache/trafficserver/pull/1167
  
    Yeah, we had a problem at Y! this fixed. The plugin writer set the `HOST` 
header in order to control subsequent remapping, a reasonable thing to do. But 
if the request comes in with the host in the URL then remap prioritizes that 
over the `HOST` header and things don't work right for non obvious reasons. 
Better to have a real "set the host" method that does the right thing. 
Technically this could be done by the plugin but the point of the CPP API is to 
make writing plugins easier by taking care of these pesky details that would be 
the same in every plugin.


Issue Time Tracking
-------------------

    Worklog Id:     (was: 31404)
    Time Spent: 1h  (was: 50m)

> CPP API Request object should directly support setting the host.
> ----------------------------------------------------------------
>
>                 Key: TS-5025
>                 URL: https://issues.apache.org/jira/browse/TS-5025
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: CPP API
>            Reporter: Alan M. Carroll
>            Assignee: Brian Geffon
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Just setting the host in the URL or in the headers can create a malformed 
> request. The {{Request}} object itself should support at {{setHost}} method 
> that takes care of the details of updating both without adding the host to 
> the URL if it's not already present.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to