When using the .NET AWSSDK connected to localstack and querying cloudwatch logs e.g. 
 var logClient = new AmazonCloudWatchLogsClient(new AmazonCloudWatchLogsConfig()
            {
                ServiceURL = "http://localhost:4586",
                UseHttp = true,
                AuthenticationRegion = "eu-central-1",
            });
            var logGroupName = @"/aws/lambda/f1";
            var events = logClient.FilterLogEventsAsync(new FilterLogEventsRequest()
            {
                LogGroupName = logGroupName,
            }).GetAwaiter().GetResult();

The response is returned from the server but cannot be parsed by the SDK client code because the response's content-type header is text/html when it should be application/x-amz-json-1.1.  This confirmed using Fiddler traces comparing the response from localstack to the response from AWS in the cloud. Can this be fixed easily?
import re
from requests.models import Request
from localstack.utils.common import to_str
from localstack.services.generic_proxy import ProxyListener
class ProxyListenerCloudWatchLogs(ProxyListener):
    def forward_request(self, method, path, data, headers):
        if method == 'POST' and path == '/':
            if 'nextToken' in to_str(data or ''):
                data = self._fix_next_token_request(data)
                headers['content-length'] = str(len(data))
                return Request(data=data, headers=headers, method=method)
        return True
    def return_response(self, method, path, data, headers, response):
        if 'nextToken' in to_str(response.content or ''):
            self._fix_next_token_response(response)
            response.headers['content-length'] = str(len(response._content))
    def _fix_next_token_request(self, data):
        
        pattern = r'"nextToken":\s*"([0-9]+)"'
        replacement = r'"nextToken": \1'
        return re.sub(pattern, replacement, to_str(data))
    def _fix_next_token_response(self, response):
        
        pattern = r'"nextToken":\s*([0-9]+)'
        replacement = r'"nextToken": "\1"'
        response._content = re.sub(pattern, replacement, to_str(response.content))
UPDATE_LOGS = ProxyListenerCloudWatchLogs()