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:
Murai Takashi
2021-06-24 12:50:49 +00:00
committed by Alex von Gluck IV
parent 68c3f45dfb
commit 0071f2c477
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ static struct option const kLongOptions[] = {
extern const char *__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 int kMaxTocSize = 1024;
+1 -1
View File
@@ -375,7 +375,7 @@ CDDBServer::_SendCommand(const BString& command, BString& output)
// And now add command header and footer.
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(),
fullCommand.Length());