Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • Icecast-Server Icecast-Server
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 116
    • Issues 116
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Xiph.OrgXiph.Org
  • Icecast-ServerIcecast-Server
  • Issues
  • #810

[PATCH] Announce ability for range requests

The file server now accepts a Range: header, so it would be best to announce this in the response headers. Two lines of code added to fserve.c, patch follows.

--- fserve.c.orig Thu Sep 8 16:03:51 2005 +++ fserve.c Wed Jan 4 15:12:39 2006 @@ -514,6 +514,7 @@ bytes = snprintf (httpclient->refbuf->data, BUFSIZE, "HTTP/1.1 206 Partial Content\r\n" "Date: %s\r\n"

  •                "Accept-Ranges: bytes\r\n"
                   "Content-Length: " FORMAT_INT64 "\r\n"
                   "Content-Range: bytes " FORMAT_INT64 \
                   "-" FORMAT_INT64 "/" FORMAT_INT64 "\r\n"

@@ -548,6 +549,7 @@ httpclient->respcode = 200; bytes = snprintf (httpclient->refbuf->data, BUFSIZE, "HTTP/1.0 200 OK\r\n"

  •        "Accept-Ranges: bytes\r\n"
           "Content-Length: " FORMAT_INT64 "\r\n"
           "Content-Type: %s\r\n\r\n",
           content_length,
Assignee
Assign to
Time tracking