Compare commits
1 Commits
7afcf55d78
...
9e2a7d338d
Author | SHA1 | Date |
---|---|---|
Juhani Krekelä | 9e2a7d338d |
|
@ -12,12 +12,13 @@ class HTTPRequestHandler(http.server.BaseHTTPRequestHandler):
|
|||
encoded = html.encode('utf-8')
|
||||
length = len(encoded)
|
||||
|
||||
# TODO: Make this more sensical
|
||||
sent_cookies = http.cookies.SimpleCookie()
|
||||
sent_cookies['buranun_session'] = 'dihutenosa'
|
||||
#sent_cookies['buranun_session']['domain'] = 'ahti-saarelainen.zgrep.org'
|
||||
sent_cookies['buranun_session']['domain'] = 'ahti-saarelainen.zgrep.org'
|
||||
sent_cookies['buranun_session']['path'] = '/board'
|
||||
sent_cookies['buranun_session']['max-age'] = 60
|
||||
#sent_cookies['buranun_session']['secure'] = True
|
||||
sent_cookies['buranun_session']['secure'] = True
|
||||
sent_cookies['buranun_session']['httponly'] = True
|
||||
|
||||
self.send_response(status_code)
|
||||
|
@ -37,6 +38,7 @@ class HTTPRequestHandler(http.server.BaseHTTPRequestHandler):
|
|||
self.__send_html(html, status_code = 404)
|
||||
|
||||
def do_GET(self):
|
||||
# TODO: Do something with the session
|
||||
cookies_string = self.headers['cookie']
|
||||
|
||||
if cookies_string is not None:
|
||||
|
|
Loading…
Reference in New Issue