|
@@ -46,7 +46,7 @@ class HTTPException(Exception):
|
|
|
|
|
|
|
|
BASE_HEADERS = [
|
|
BASE_HEADERS = [
|
|
|
('Access-Control-Allow-Origin', '*'),
|
|
('Access-Control-Allow-Origin', '*'),
|
|
|
- ('Access-Control-Allow-Headers', 'X-Requested-With, X-Request'),
|
|
|
|
|
|
|
+ ('Access-Control-Allow-Headers', 'Authorization, X-Requested-With, X-Request'),
|
|
|
]
|
|
]
|
|
|
DEFAULT_HEADERS = BASE_HEADERS + [('Content-type', 'application/json')]
|
|
DEFAULT_HEADERS = BASE_HEADERS + [('Content-type', 'application/json')]
|
|
|
ERROR_HEADERS = BASE_HEADERS + [('Content-type', 'text/plain')]
|
|
ERROR_HEADERS = BASE_HEADERS + [('Content-type', 'text/plain')]
|
|
@@ -88,7 +88,7 @@ def application(environ, start_response):
|
|
|
|
|
|
|
|
def get_raw(split, query, environ):
|
|
def get_raw(split, query, environ):
|
|
|
try:
|
|
try:
|
|
|
- group_id = int(split[1])
|
|
|
|
|
|
|
+ group_id = get_group(split, environ)
|
|
|
server_id = int(split[3])
|
|
server_id = int(split[3])
|
|
|
start = datetime.datetime.strptime(query['start'], '%Y-%m-%d').date()
|
|
start = datetime.datetime.strptime(query['start'], '%Y-%m-%d').date()
|
|
|
end = datetime.datetime.strptime(query['end'], '%Y-%m-%d').date()
|
|
end = datetime.datetime.strptime(query['end'], '%Y-%m-%d').date()
|