cddb_lookup: Update default server
Fix part of #17023 * Update default server to "gnudb.gnudb.org:80". * Add "/" to command footer to work with gnudb. Change-Id: I363ca919d971e96ba27476a56ca06b4e8fa99171 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4112 Reviewed-by: Alex von Gluck IV <[email protected]>
This commit is contained in:
committed by
Alex von Gluck IV
parent
68c3f45dfb
commit
0071f2c477
@@ -66,7 +66,7 @@ static struct option const kLongOptions[] = {
|
|||||||
extern const char *__progname;
|
extern const char *__progname;
|
||||||
static const char *kProgramName = __progname;
|
static const char *kProgramName = __progname;
|
||||||
|
|
||||||
static const char* kDefaultServerAddress = "freedb.freedb.org:80";
|
static const char* kDefaultServerAddress = "gnudb.gnudb.org:80";
|
||||||
static const char* kCddaFsName = "cdda";
|
static const char* kCddaFsName = "cdda";
|
||||||
static const int kMaxTocSize = 1024;
|
static const int kMaxTocSize = 1024;
|
||||||
|
|
||||||
|
|||||||
@@ -375,7 +375,7 @@ CDDBServer::_SendCommand(const BString& command, BString& output)
|
|||||||
|
|
||||||
// And now add command header and footer.
|
// And now add command header and footer.
|
||||||
fullCommand.Prepend("GET /~cddb/cddb.cgi?cmd=");
|
fullCommand.Prepend("GET /~cddb/cddb.cgi?cmd=");
|
||||||
fullCommand << " HTTP 1.0\n\n";
|
fullCommand << " HTTP/1.0\n\n";
|
||||||
|
|
||||||
int32 result = fConnection.Send((void*)fullCommand.String(),
|
int32 result = fConnection.Send((void*)fullCommand.String(),
|
||||||
fullCommand.Length());
|
fullCommand.Length());
|
||||||
|
|||||||
Reference in New Issue
Block a user