<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -73,7 +73,7 @@ function commitResponse(env, result) {
     for (var name in headers) {
         response.setHeader(name, headers[name]);
     }
-    var charset = getMimeParameter(HeaderMap(headers).get(&quot;Content-Type&quot;), &quot;charset&quot;) || &quot;UTF-8&quot;;
+    var charset = getMimeParameter(Headers(headers).get(&quot;Content-Type&quot;), &quot;charset&quot;) || &quot;UTF-8&quot;;
     var output = response.getOutputStream();
     if (body &amp;&amp; typeof body.forEach == &quot;function&quot;) {
         body.forEach(function(part) {</diff>
      <filename>modules/helma/jsgi.js</filename>
    </modified>
    <modified>
      <diff>@@ -20,7 +20,7 @@ function handleRequest(req) {
             etags = header.split(&quot;,&quot;).map(function(s) s.trim());
         }
         var digest = '&quot;' + body.digest() + '&quot;';
-        headers = HeaderMap(headers);
+        headers = Headers(headers);
         headers.set(&quot;ETag&quot;, digest);
         if (etags &amp;&amp; etags.contains(digest)) {
             // return not-modified response</diff>
      <filename>modules/helma/middleware/etag.js</filename>
    </modified>
    <modified>
      <diff>@@ -13,7 +13,7 @@ export('handleRequest');
 function handleRequest(req) {
     var res = req.process();
     var {status, headers, body} = res;
-    headers = HeaderMap(headers);
+    headers = Headers(headers);
     if (canCompress(status,
             req.getHeader(&quot;Accept-Encoding&quot;),
             headers.get('Content-Type'),</diff>
      <filename>modules/helma/middleware/gzip.js</filename>
    </modified>
    <modified>
      <diff>@@ -29,7 +29,7 @@ exports.handleRequest = function handleRequest(req) {
     var {status, headers, body} = res;
 
     // only do this for ordinary HTML responses
-    var contentType = HeaderMap(headers).get(&quot;content-type&quot;);
+    var contentType = Headers(headers).get(&quot;content-type&quot;);
     if (status != 200 &amp;&amp; status &lt; 400 || !contentType || !contentType.startsWith(&quot;text/html&quot;)) {
         return res;
     }</diff>
      <filename>modules/helma/middleware/responselog.js</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,7 @@ function Response() {
     var status = 200;
     var charset = config &amp;&amp; config.charset || 'utf-8';
     var contentType = config &amp;&amp; config.contentType || 'text/html';
-    var headers = new HeaderMap();
+    var headers = new Headers();
     var buffer = new Buffer();
 
     this.write = function write() {</diff>
      <filename>modules/helma/webapp/response.js</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@ include('helma/buffer');
 
 module.shared = true;
 
-export('ResponseFilter', 'HeaderMap', 'getMimeParameter');
+export('ResponseFilter', 'Headers', 'getMimeParameter');
 
 /**
  * A utility class for implementing JSGI response filters. Each part of the
@@ -32,7 +32,7 @@ function ResponseFilter(body, filter) {
  * This function can be used as mixin for an existing JavaScript object or as a constructor.
  * @param headers an existing JS object. If undefined, a new object is created
  */
-function HeaderMap(headers) {
+function Headers(headers) {
     // when is a duck a duck?
     if (headers &amp;&amp; headers.get &amp;&amp; headers.set) {
         return headers;</diff>
      <filename>modules/helma/webapp/util.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8c046872ad7085ab6b9af11a257b308b24e3b60d</id>
    </parent>
  </parents>
  <author>
    <name>Hannes Walln&#246;fer</name>
    <email>hannesw@gmail.com</email>
  </author>
  <url>http://github.com/earl/helma-ng/commit/1d95645b0aafd5bf511e31e97ee8ae52293c2d72</url>
  <id>1d95645b0aafd5bf511e31e97ee8ae52293c2d72</id>
  <committed-date>2009-10-06T01:26:12-07:00</committed-date>
  <authored-date>2009-10-06T01:26:12-07:00</authored-date>
  <message>s/HeaderMap/Headers/</message>
  <tree>3e52843ac45cdae1c5f5545b42959b6ab87f57b0</tree>
  <committer>
    <name>Hannes Walln&#246;fer</name>
    <email>hannesw@gmail.com</email>
  </committer>
</commit>
