Fixing & adding Bokchoys for edx notes pagination.
TNL-3910
This commit is contained in:
@@ -3,6 +3,7 @@ Stub implementation of an HTTP service.
|
||||
"""
|
||||
|
||||
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
|
||||
import urllib
|
||||
import urlparse
|
||||
import threading
|
||||
import json
|
||||
@@ -217,6 +218,8 @@ class StubHttpRequestHandler(BaseHTTPRequestHandler, object):
|
||||
`format_str` is a string with old-style Python format escaping;
|
||||
`args` is an array of values to fill into the string.
|
||||
"""
|
||||
if not args:
|
||||
format_str = urllib.unquote(format_str)
|
||||
return u"{0} - - [{1}] {2}\n".format(
|
||||
self.client_address[0],
|
||||
self.log_date_time_string(),
|
||||
|
||||
Reference in New Issue
Block a user