# HG changeset patch # User William Pitcock # Date 1241714601 18000 # Node ID 647edbe263bd4ea7f2f6bf6e04fd7fb099c31ef7 # Parent 8e26022bb8140bab390df7ec0c8c366b49c6a3dc neon: Don't bother trying to seek on a Twisted server. It lies about it's capabilities, which leads to failure. (Closes #56) diff -r 8e26022bb814 -r 647edbe263bd src/neon/neon.c --- a/src/neon/neon.c Thu May 07 11:14:36 2009 -0500 +++ b/src/neon/neon.c Thu May 07 11:43:21 2009 -0500 @@ -409,6 +409,13 @@ continue; } + if (neon_strcmp(name, "server")) { + if (NULL != g_strrstr(value, "Twisted/")) { + _DEBUG("ugh. this is a twisted server, and therefore cannot REALLY seek: %s", value); + h->can_ranges = FALSE; + } + } + if (neon_strcmp(name, "content-length")) { /* * The server sent us the content length. Parse and store.