                          if (_MediaType(renderer.media_type).precedence >
                              _MediaType(media_type).precedence):
                              # Eg client requests '*/*'
                              # Accepted media type is 'application/json'
                              return renderer, renderer.media_type
                          else:
                              # Eg client requests 'application/json; indent=8'
                              # Accepted media type is 'application/json; indent=8'
                              return renderer, media_type
  
 
</s> remove                             return renderer, media_type
 </s> add                             renderer_and_media_type = renderer, media_type
                        if renderer.charset:
                            charset = renderer.charset
                        else:
                            charset = self.__class__.settings.DEFAULT_CHARSET
                        retval = renderer_and_media_type + (charset,)
                        return retval </s> remove 
        self['Content-Type'] = media_type
 </s> add         if charset is not None:
            ct = "{0}; charset={1}".format(media_type, charset)
        else:
            ct = media_type
        self['Content-Type'] = ct </s> remove         request.accepted_renderer, request.accepted_media_type = neg
 </s> add         renderer, media_type, charset = neg
        request.accepted_renderer = renderer
        request.accepted_media_type = media_type
        request.accepted_charset = charset </s> remove                 return (renderers[0], renderers[0].media_type)
 </s> add                 charset = renderers[0].charset
                charset = charset if charset is not None else api_settings.DEFAULT_CHARSET
                return (renderers[0], renderers[0].media_type, renderers[0].charset)
                            renderer_and_media_type = renderer, renderer.media_type
                          if (_MediaType(renderer.media_type).precedence >
                              _MediaType(media_type).precedence):
                              # Eg client requests '*/*'
                              # Accepted media type is 'application/json'
                            renderer_and_media_type = renderer, renderer.media_type
                          else:
                              # Eg client requests 'application/json; indent=8'
                              # Accepted media type is 'application/json; indent=8'
                              return renderer, media_type
  
keep keep keep keep replace keep keep keep keep keep
 charset param gets now appended to response's Content-Type. Closes #807 
rest_framework/negotiation.py