Skip to content
  • Edward Hervey's avatar
    souphttpsrc: Fix seeking back to 0 · 770bb07f
    Edward Hervey authored and Edward Hervey's avatar Edward Hervey committed
    This is a regression introduced by "03db3741 - souphttpsrc: retry
    request on early termination from the server"
    
    The problem was that when seeking back to 0, we would not end up calling
    add_range_header() which in addition to adding range headers *ALSO* sets
    the read_position to the requested one.
    
    This would result in a wide variety of later failures, like reading
    again and again instead of stopping properly.
    770bb07f