]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/anyp/ProtocolVersion.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / anyp / ProtocolVersion.h
index 3ba01cd147538c20a97eb6453d0da56dd867672a..b68b5386e5170b1ec4ab53709014d4865038fe6c 100644 (file)
@@ -1,11 +1,17 @@
+/*
+ * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
 #ifndef SQUID_ANYP_PROTOCOLVERSION_H
 #define SQUID_ANYP_PROTOCOLVERSION_H
 
 #include "anyp/ProtocolType.h"
 
-#if HAVE_OSTREAM
 #include <ostream>
-#endif
 
 namespace AnyP
 {
@@ -82,12 +88,13 @@ public:
     }
 };
 
-} // namespace AnyP
-
 inline std::ostream &
 operator << (std::ostream &os, const AnyP::ProtocolVersion &v)
 {
-    return (os << AnyP::ProtocolType_str[v.protocol] << v.major << '.' << v.minor);
+    return (os << AnyP::ProtocolType_str[v.protocol] << '/' << v.major << '.' << v.minor);
 }
 
+} // namespace AnyP
+
 #endif /* SQUID_ANYP_PROTOCOLVERSION_H */
+