mirror of
https://github.com/facebook/proxygen.git
synced 2025-04-19 01:04:16 +03:00
Fix CQS signal. Id] 1540596 -- readability-redundant-string-init in fbcode/proxygen/lib/http
Reviewed By: dtolnay Differential Revision: D73097505 fbshipit-source-id: 43f1a9cdcf24c7ef3e660bc6737818eba0747944
This commit is contained in:
parent
f7d2f6490c
commit
30f9dda460
@ -529,7 +529,7 @@ bool HTTPHeaders::forEachValueOfHeader(HTTPHeaderCode code, LAMBDA func) const {
|
||||
template <typename T>
|
||||
std::string HTTPHeaders::combine(const T& header,
|
||||
const std::string& separator) const {
|
||||
std::string combined = "";
|
||||
std::string combined;
|
||||
forEachValueOfHeader(header, [&](const std::string& value) -> bool {
|
||||
if (combined.empty()) {
|
||||
combined.append(value);
|
||||
|
@ -42,7 +42,7 @@ TEST(QvalueTest, Basic) {
|
||||
}
|
||||
|
||||
{
|
||||
string test("");
|
||||
string test;
|
||||
// The spec says a blank one is ok but empty headers are disallowed in SPDY?
|
||||
EXPECT_FALSE(RFC2616::parseQvalues(test, output));
|
||||
EXPECT_EQ(output.size(), 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user