fix spaces... existing

This commit is contained in:
ArsenArsen 2018-01-03 00:28:39 +01:00
parent 391c6f7923
commit 785400b59c
No known key found for this signature in database
GPG Key ID: 683D2F43B0CA4BD2

View File

@ -33,8 +33,8 @@ void requestlogging::addEntry(RequestContext context) {
responseFile.write("\n\n" + context.response);
responseFile.close();
QTextStream(&requestFile) << ioutils::methodString(context.reply->operation()) << " " // $type
<< context.reply->url().toString() << " " // $url
QTextStream(&requestFile) << ioutils::methodString(context.reply->operation()) << " " // $type
<< context.reply->url().toString().replace(" ", "%20") << " " // $url
<< context.reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() << " " // $status
<< timeNow.replace(" ", "_") << endl
<< flush; // $time