Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Icecast-Server
Icecast-Server
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 94
    • Issues 94
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Xiph.Org
  • Icecast-ServerIcecast-Server
  • Issues
  • #810

Closed
Open
Opened Jan 04, 2006 by mcbicecast@mcbicecast

[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
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: xiph/icecast-server#810