1. 19 Feb, 2007 2 commits
    • Eric Wong's avatar
      inputStream_http: cleanup GET request code (finishHTTPInit) · 772dc6bc
      Eric Wong authored
      Avoid unnecessary memset to zero, snprintf always puts a
      trailing '\0'.  We also have no need to subtract one from the
      buffer we're snprintf-ing it to.
      
      We also check the return value of snprintf to ensure it's not
      too long.  I have a feeling we might as well avoid snprintf
      altogether so we don't have to worry about buffer sizing/stack
      overflow and just do a bunch of write(2)s, letting Nagle sort it
      out...
      
      Also, centralize some of the exit error handling in with
      goto.  This makes the code a bit more consistent and
      maintainable as well as reducing code and binary size.
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@5395 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      772dc6bc
    • Eric Wong's avatar
      inputStream_http: fix HTTP seeking · 93726921
      Eric Wong authored
      We need to identify ourselves as HTTP/1.1 so Range: works;
      and so the server can return HTTP/1.1 instead of HTTP/1.0.
      
      Tested against lighttpd 1.4.13
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@5394 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      93726921
  2. 18 Feb, 2007 5 commits
  3. 13 Feb, 2007 3 commits
  4. 11 Feb, 2007 1 commit
  5. 06 Feb, 2007 1 commit
  6. 02 Feb, 2007 1 commit
  7. 24 Jan, 2007 2 commits
  8. 21 Jan, 2007 1 commit
  9. 20 Jan, 2007 1 commit
  10. 19 Jan, 2007 1 commit
  11. 17 Jan, 2007 1 commit
  12. 14 Jan, 2007 21 commits