Mercurial > audlegacy-plugins
comparison src/neon/neon.c @ 3139:647edbe263bd
neon: Don't bother trying to seek on a Twisted server. It lies about it's capabilities, which leads to failure.
(Closes #56)
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Thu, 07 May 2009 11:43:21 -0500 |
parents | 005959102811 |
children |
comparison
equal
deleted
inserted
replaced
3138:8e26022bb814 | 3139:647edbe263bd |
---|---|
405 _DEBUG("server can_ranges"); | 405 _DEBUG("server can_ranges"); |
406 h->can_ranges = TRUE; | 406 h->can_ranges = TRUE; |
407 } | 407 } |
408 | 408 |
409 continue; | 409 continue; |
410 } | |
411 | |
412 if (neon_strcmp(name, "server")) { | |
413 if (NULL != g_strrstr(value, "Twisted/")) { | |
414 _DEBUG("ugh. this is a twisted server, and therefore cannot REALLY seek: %s", value); | |
415 h->can_ranges = FALSE; | |
416 } | |
410 } | 417 } |
411 | 418 |
412 if (neon_strcmp(name, "content-length")) { | 419 if (neon_strcmp(name, "content-length")) { |
413 /* | 420 /* |
414 * The server sent us the content length. Parse and store. | 421 * The server sent us the content length. Parse and store. |