]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/internal/io/HttpHeader_p.cpp
Fixed: const-related typo in last commit
[bamtools.git] / src / api / internal / io / HttpHeader_p.cpp
index 1398d4cfeb041feb33375e3d593f307d7d37e479..156df2611acffe56a98634570968f4c45c4a4bd3 100644 (file)
@@ -1,3 +1,13 @@
+// ***************************************************************************
+// HttpHeader_p.cpp (c) 2011 Derek Barnett
+// Marth Lab, Department of Biology, Boston College
+// ---------------------------------------------------------------------------
+// Last modified: 13 January 2012 (DB)
+// ---------------------------------------------------------------------------
+// Provides a generic interface for parsing/generating HTTP headers, along
+// with specialized request & response header types
+// ***************************************************************************
+
 #include "api/internal/io/HttpHeader_p.h"
 using namespace BamTools;
 using namespace BamTools::Internal;
@@ -115,9 +125,9 @@ int HttpHeader::GetMinorVersion(void) const {
     return m_minorVersion;
 }
 
-string HttpHeader::GetValue(const string& key) const {
+string HttpHeader::GetValue(const string& key) {
     if ( ContainsKey(key) )
-        return m_fields.at(key);
+        return m_fields[key];
     else return string();
 }