[easytag/easytag-2-2] Fix CDDB requests being truncated



commit 9aca7e1609e055aa787558b32f2ab1586535d53b
Author: ChrisiPK <ChrisiPK gmail com>
Date:   Wed Feb 11 11:46:59 2015 +0000

    Fix CDDB requests being truncated
    
    EasyTAG does not handle the chunked encoding and truncates lines that
    fall on chunk boundaries. Make HTTP requests with 1.0 as the protocol
    version, to avoid a chunked transfer encoding.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=743812

 src/cddb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/cddb.c b/src/cddb.c
index 420015a..46a3afd 100644
--- a/src/cddb.c
+++ b/src/cddb.c
@@ -3562,7 +3562,7 @@ Cddb_Get_Album_Tracks_List (GtkTreeSelection* selection)
             // New version of gnudb doesn't use a cddb request, but a http request
             cddb_in = g_strdup_printf("GET %s%s/gnudb/"
                                       "%s/%s"
-                                      " HTTP/1.1\r\n"
+                                      " HTTP/1.0\r\n"
                                       "Host: %s:%d\r\n"
                                       "User-Agent: %s %s\r\n"
                                       "%s"
@@ -3582,7 +3582,7 @@ Cddb_Get_Album_Tracks_List (GtkTreeSelection* selection)
             cddb_in = g_strdup_printf("GET %s%s%s?cmd=cddb+read+"
                                       "%s+%s"
                                       "&hello=noname+localhost+%s+%s"
-                                      "&proto=6 HTTP/1.1\r\n"
+                                      "&proto=6 HTTP/1.0\r\n"
                                       "Host: %s:%d\r\n"
                                       "%s"
                                       "Connection: close\r\n\r\n",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]