mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 15:35:03 -04:00
bug fixed, the library name is no longer used in the urls of the web library
This commit is contained in:
@ -18,7 +18,7 @@ void ComicController::service(HttpRequest& request, HttpResponse& response)
|
||||
|
||||
QString path = QUrl::fromPercentEncoding(request.getPath()).toLatin1();
|
||||
QStringList pathElements = path.split('/');
|
||||
QString libraryName = pathElements.at(2);
|
||||
QString libraryName = DBHelper::getLibraryName(pathElements.at(2).toInt());
|
||||
qulonglong comicId = pathElements.at(4).toULongLong();
|
||||
|
||||
//TODO
|
||||
@ -69,7 +69,7 @@ void ComicController::service(HttpRequest& request, HttpResponse& response)
|
||||
session.setCurrentComic(comic.id, comicFile);
|
||||
|
||||
response.setHeader("Content-Type", "plain/text; charset=ISO-8859-1");
|
||||
|
||||
//TODO this field is not used by the client!
|
||||
response.writeText(QString("library:%1\r\n").arg(libraryName));
|
||||
response.writeText(comic.toTXT(),true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user