# File lib_wpm/wpm/cgidriver.rb, line 64
    def set_header(name, value)
      @closed and raise 'closed'

      case (name)
      when /^Content-Type$/i
        if (value =~ %"^\S+/\S+") then
          @options['type'] = $&
          @options['type'].gsub!(/;$/, '')
        end
        if (value =~ %'charset="([^"]+)"' || value =~ %"charset=(\S+)") then
          @options['charset'] = $1
        end
      when /^Status$/i
        @options['status'] = value
      when /^Server$/i
        @options['server'] = value
      when /^Connection$/i
        @options['connection'] = value
      when /^Content-Length$/i
        @options['length'] = value
      when /^Content-Language$/i
        @options['language'] = value
      when /^Expires$/i
        @options['expires'] = value
      when /^Set-Cookie$/i
        @options['cookie'] = value
      else
        @options[name] = value
      end

      nil
    end