Minor change to fallback to the headers, if this.getHeader() returns undefined. Not exactly sure why, but this was need to use harmon as middleware when using s3proxy instead of node-http-proxy. There is a case when headers variable is { "content-type": "text/html", ... } but this.getHeader( 'content-type' ) returns undefined. Maybe classic "this" handling in javascript.
Minor change to fallback to the headers, if this.getHeader() returns undefined. Not exactly sure why, but this was need to use harmon as middleware when using s3proxy instead of node-http-proxy. There is a case when headers variable is { "content-type": "text/html", ... } but this.getHeader( 'content-type' ) returns undefined. Maybe classic "this" handling in javascript.