From 93e11925ff8c757ec697f01b9c70f0bf7a2360c0 Mon Sep 17 00:00:00 2001 From: jinder1s Date: Fri, 4 Oct 2019 11:31:20 -0400 Subject: [PATCH] Removing decoding due to it being done in another place --- common/djangoapps/terrain/stubs/http.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/common/djangoapps/terrain/stubs/http.py b/common/djangoapps/terrain/stubs/http.py index fcb75c1042..db66edcf8c 100644 --- a/common/djangoapps/terrain/stubs/http.py +++ b/common/djangoapps/terrain/stubs/http.py @@ -18,7 +18,6 @@ from six.moves.BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer # pylin from six.moves.socketserver import ThreadingMixIn # pylint: disable=import-error LOGGER = getLogger(__name__) - def require_params(method, *required_keys): """ Decorator to ensure that the method has all the required parameters. @@ -158,13 +157,6 @@ class StubHttpRequestHandler(BaseHTTPRequestHandler, object): if len(self.post_dict) > 0: for key, value in six.iteritems(self.post_dict): - # Decode the params as UTF-8 - try: - key = six.text_type(key, 'utf-8') - value = six.text_type(value, 'utf-8') - except UnicodeDecodeError: - self.log_message("Could not decode request params as UTF-8") - self.log_message(u"Set config '{0}' to '{1}'".format(key, value)) try: