Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/scriptform/commit/b7bfe276391a1a80c2ca348a08bb5ffc980f9dcd?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
14 additions and
2 deletions
src/webserver.py
@ -2,10 +2,10 @@
Basic web server / framework .
Basic web server / framework .
"""
"""
from SocketServer import ThreadingMixIn
import BaseHTTPServer
import BaseHTTPServer
import urlparse
import cgi
import cgi
import urlparse
from SocketServer import ThreadingMixIn
class HTTPError ( Exception ) :
class HTTPError ( Exception ) :
@ -57,6 +57,18 @@ class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
environ = { ' REQUEST_METHOD ' : ' POST ' } )
environ = { ' REQUEST_METHOD ' : ' POST ' } )
self . _call ( self . path . strip ( ' / ' ) , params = { ' form_values ' : form_values } )
self . _call ( self . path . strip ( ' / ' ) , params = { ' form_values ' : form_values } )
def do_OPTIONS ( self ) : # pylint: disable=invalid-name
"""
Handle OPTIONS request and return CORS headers .
"""
self . send_response ( 200 , ' ok ' )
self . send_header ( ' Access-Control-Allow-Origin ' , ' * ' )
self . send_header ( ' Access-Control-Allow-Methods ' , ' POST, GET, OPTIONS ' )
self . send_header ( ' Access-Control-Allow-Headers ' , ' X-Requested-With ' )
self . send_header ( ' Access-Control-Allow-Headers ' , ' Content-Type, '
' Authorization ' )
self . end_headers ( )
def _parse ( self , reqinfo ) :
def _parse ( self , reqinfo ) :
"""
"""
Parse information from a request .
Parse information from a request .