[vlc-commits] https: add HTTP 304 as empty response code
Rémi Denis-Courmont
git at videolan.org
Mon Dec 14 18:51:11 CET 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 13 23:50:41 2015 +0200| [0e9bd5e0a290689e380944e30ffbeb56d7d5dde3] | committer: Rémi Denis-Courmont
https: add HTTP 304 as empty response code
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e9bd5e0a290689e380944e30ffbeb56d7d5dde3
---
modules/access/http/message.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/access/http/message.c b/modules/access/http/message.c
index 9cb22a7..6850430 100644
--- a/modules/access/http/message.c
+++ b/modules/access/http/message.c
@@ -678,10 +678,11 @@ unsigned vlc_http_msg_get_retry_after(const struct vlc_http_msg *m)
}
uintmax_t vlc_http_msg_get_size(const struct vlc_http_msg *m)
-{
+{ /* IETF RFC7230 §3.3.3 */
if ((m->status / 100) == 1 /* Informational 1xx (implicitly void) */
|| m->status == 204 /* No Content (implicitly void) */
- || m->status == 205 /* Reset Content (must be explicitly void) */)
+ || m->status == 205 /* Reset Content (must be explicitly void) */
+ || m->status == 304 /* Not Modified */)
return 0;
const char *str = vlc_http_msg_get_header(m, "Content-Length");
More information about the vlc-commits
mailing list