Merge pull request #352 from kiwix/small-compilation-error-fix

Fix small compilation error in tests
This commit is contained in:
Kelson 2020-05-17 18:37:53 +02:00 committed by GitHub
commit 4f8b397081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -280,8 +280,9 @@ TEST_F(ServerTest, ETagHeaderIsSetAsNeeded)
for ( const Resource& res : all200Resources() ) {
const auto responseToGet = zfs1_->GET(res.url);
EXPECT_EQ(res.etag_expected, responseToGet->has_header("ETag")) << res;
if ( res.etag_expected )
if ( res.etag_expected ) {
EXPECT_TRUE(is_valid_etag(responseToGet->get_header_value("ETag")));
}
}
}