You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "William Bardwell (JIRA)" <ji...@apache.org> on 2011/05/06 22:37:03 UTC

[jira] [Updated] (TS-762) Range values like -10 are processed wrong

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

William Bardwell updated TS-762:
--------------------------------

    Attachment: range-fix.diff

One line fix.

> Range values like -10 are processed wrong
> -----------------------------------------
>
>                 Key: TS-762
>                 URL: https://issues.apache.org/jira/browse/TS-762
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP
>    Affects Versions: 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
>            Reporter: William Bardwell
>         Attachments: range-fix.diff
>
>
> A Range header like "Range: bytes=-10" should return the last 10 bytes instead it returns the first 10.
> The problem is the parsing is assuming that mime_parse_int64 on an empty string returns -1, but it returns 0.
> I will attach a patch.

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