SimpleHTTPRequestHandler Override do_GET
<p>I want to extend SimpleHTTPRequestHandler and override the default behavior of <code>do_GET()</code>.  I am returning a string from my custom handler but the client doesn't receive the response.</p>

<p>Here is my handler class:</p>

<pre><code>DUMMY_RESPONSE = """Content-type: text/html

&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Python Test&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
Test page...success.
&lt;/body&gt;
&lt;/html&gt;
"""

class MyHandler(CGIHTTPRequestHandler):

    def __init__(self,req,client_addr,server):
        CGIHTTPRequestHandler.__init__(self,req,client_addr,server)

    def do_GET(self):
        return DUMMY_RESPONSE
</code></pre>

<p>What must I change to make this work correctly?</p>
