midchildan opened a new pull request #7696:
URL: https://github.com/apache/trafficserver/pull/7696
`tspush` uses output from `file -b --mime` to set the `Content-Type` header
for the cached object, but fails to strip a trailing newline in doing so. The
extraneous newline inadvertently terminates the HTTP header, making Traffic
Server recognize the following header fields as part of the cached body.
The following is an output of a curl request to content pushed using
`tspush`. As can be seen, `Content-length: 34` is prepended to the response
body.
* Trying 192.168.1.1:80...
* Connected to ats (192.168.1.1) port 80 (#0)
> GET /tspush HTTP/1.1
> Host: ats
> User-Agent: curl/7.74.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-type: text/plain; charset=us-ascii
< Age: 0
< Date: Sun, 11 Apr 2021 07:17:59 GMT
< Content-Length: 56
< Connection: keep-alive
< Server: ATS/9.0.0
<
Content-length: 34
It's the season of White Album.
* Connection #0 to host ats left intact
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]