diff options
Diffstat (limited to 'vespalib/src/tests/portal/portal_test.cpp')
-rw-r--r-- | vespalib/src/tests/portal/portal_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vespalib/src/tests/portal/portal_test.cpp b/vespalib/src/tests/portal/portal_test.cpp index ee5d10a313a..1baebc69e97 100644 --- a/vespalib/src/tests/portal/portal_test.cpp +++ b/vespalib/src/tests/portal/portal_test.cpp @@ -47,8 +47,9 @@ vespalib::string make_expected_response(const vespalib::string &content_type, co return vespalib::make_string("HTTP/1.1 200 OK\r\n" "Connection: close\r\n" "Content-Type: %s\r\n" + "Content-Length: %zu\r\n" "\r\n" - "%s", content_type.c_str(), content.c_str()); + "%s", content_type.c_str(), content.size(), content.c_str()); } vespalib::string make_expected_error(int code, const vespalib::string &message) { |