 
 # -- Make HTTP request
 
-Resources.headersSize = (headers)->
-  str = ''
-  for key, value in headers
-    str += key + ': ' + value + '\n\r'
-  str += '\n\r'
-  return Buffer.bytelength(str, 'utf8')
-
 # Used to perform HTTP request (also supports file: resources).  This is always
 # the last request handler.
 Resources.makeHTTPRequest = (request, callback)->

          headers:           response.headers
          content:           null
          redirectURL:       response.headers['location']
          headersSize:       headersSize(response.headers)
          bodySize:          bdy.length
        # Add to HAR
        @resources.browser.har.log.entries.push(entry)

        cookies:          [httpRequest.headers.cookie]
        headers:          httpRequest.headers
        queryString:      httpRequest.query
        headersSize:      @resources.headersSize(httpRequest.headers)
        bodySize:         0
      response:         null
      timings:          
