/*
- * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#include "HttpMsg.h"
#include "HttpReply.h"
#include "HttpRequest.h"
+#include "sbuf/StringConvert.h"
Adaptation::Iterator::Iterator(
HttpMsg *aMsg, HttpRequest *aCause,
request = theCause;
Must(request);
Adaptation::History::Pointer ah = request->adaptHistory(true);
- SBuf gid(theGroup->id);
+ auto gid = StringToSBuf(theGroup->id);
ah->recordAdaptationService(gid);
}
if (Adaptation::Config::needHistory) {
Adaptation::History::Pointer ah = request->adaptHistory(true);
- SBuf uid(thePlan.current()->cfg().key);
+ auto uid = StringToSBuf(thePlan.current()->cfg().key);
ah->recordAdaptationService(uid);
}