File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 5757 url. (John Rouillard)
5858- Fix final exception handler in roundup-server to send proper
5959 Content-Length header to the client. (John Rouillard)
60+ - Fix traceback if Origin header is missing. (John Rouillard)
6061
6162Features:
6263
Original file line number Diff line number Diff line change @@ -1259,7 +1259,11 @@ def check_anonymous_access(self):
12591259 "allowed to use the web interface" ))
12601260
12611261 def is_origin_header_ok (self , api = False ):
1262- origin = self .env ['HTTP_ORIGIN' ]
1262+ try :
1263+ origin = self .env ['HTTP_ORIGIN' ]
1264+ except KeyError :
1265+ return False
1266+
12631267 # note base https://host/... ends host with with a /,
12641268 # so add it to origin.
12651269 foundat = self .base .find (origin + '/' )
You can’t perform that action at this time.
0 commit comments