From: Amos Jeffries Date: Fri, 8 Jul 2011 06:01:48 +0000 (-0600) Subject: Permit simple HTTP version debug logging X-Git-Tag: take08~55^2~78 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7618c9c708479e1857d44df5530f3922dffdc250;p=thirdparty%2Fsquid.git Permit simple HTTP version debug logging --- diff --git a/src/HttpVersion.h b/src/HttpVersion.h index ed60074b0f..145a4802d3 100644 --- a/src/HttpVersion.h +++ b/src/HttpVersion.h @@ -35,6 +35,10 @@ #ifndef SQUID_HTTPVERSION_H #define SQUID_HTTPVERSION_H +#if HAVE_OSTREAM +#include +#endif + class HttpVersion { @@ -85,4 +89,10 @@ public: } }; +inline std::ostream & +operator << (std::ostream &os, const HttpVersion &v) +{ + return (os << v.major << '.' << v.minor); +} + #endif /* SQUID_HTTPVERSION_H */