File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,7 @@ def executeWa(environ, start_response):
88
88
# Passing the basic authentication header in waEnviron
89
89
# Shall be used in istSOS lib request from walib
90
90
if 'HTTP_AUTHORIZATION' in environ :
91
- print ("AUTH" )
92
- waEnviron ['HTTP_AUTHORIZATION' ] = str (len (environ ['HTTP_AUTHORIZATION' ]))
93
- print ("AUTH OK" )
91
+ waEnviron ['HTTP_AUTHORIZATION' ] = str (environ ['HTTP_AUTHORIZATION' ])
94
92
try :
95
93
96
94
try :
@@ -194,4 +192,4 @@ def executeWa(environ, start_response):
194
192
start_response (wsgi_status , wsgi_headers )
195
193
print (sys .version , sys .executable )
196
194
197
- return [wsgi_response .encode ()]
195
+ return [wsgi_response .encode ()]
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ def getUser(environ):
43
43
)
44
44
raise ie
45
45
s , base64string = environ ['HTTP_AUTHORIZATION' ].split ()
46
- print ('AUTH: ' , base64string )
47
46
username , password = base64 .b64decode (base64string ).decode ().split (':' )
48
47
passwordFile = path .join (config .services_path , "istsos.passwd" )
49
48
with open (passwordFile , 'rb' ) as f :
@@ -164,4 +163,4 @@ def executeGet(self):
164
163
class waUserUnauthorized (resource .waResource ):
165
164
def executeGet (self ):
166
165
self .setException (
167
- "Sorry, you are not authorized to execute this request." )
166
+ "Sorry, you are not authorized to execute this request." )
You can’t perform that action at this time.
0 commit comments