# File lib/evma_httpserver/response.rb, line 143 143: def fixup_headers 144: if @content 145: @headers["Content-length"] = @content.to_s.length 146: elsif @chunks 147: @headers["Transfer-encoding"] = "chunked" 148: # Might be nice to ENSURE there is no content-length header, 149: # but how to detect all the possible permutations of upper/lower case? 150: elsif @multiparts 151: @multipart_boundary = self.class.concoct_multipart_boundary 152: @headers["Content-type"] = "multipart/x-mixed-replace; boundary=\"#{@multipart_boundary}\"" 153: else 154: @headers["Content-length"] = 0 155: end 156: end