La til autentikasjon i klienten
This commit is contained in:
@@ -20,7 +20,7 @@ else:
|
||||
try:
|
||||
start = time.time()
|
||||
img = {'image': open('latest.jpg', 'rb')}
|
||||
response = requests.post(config.config['uploadurl'], files=img)
|
||||
response = requests.post(config.config['uploadurl'], files=img, headers={'Authorization': 'Basic ' + config.config['key']})
|
||||
end = time.time()
|
||||
except Exception as e:
|
||||
logging.info('Feil under opplasting: {0}'.format(e))
|
||||
|
||||
Reference in New Issue
Block a user