1
0
mirror of https://github.com/sashacmc/photo-importer.git synced 2024-11-24 08:02:14 +02:00

Merge pull request #3 from sashacmc/dev

Suppres false positive lgtm alert
This commit is contained in:
Alexander 2021-04-30 00:02:08 +02:00 committed by GitHub
commit 1ed9d7333d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,7 @@ class PhotoImporterHandler(http.server.BaseHTTPRequestHandler):
cont = 'image/png'
else:
cont = 'text/none'
with open(fname, 'rb') as f:
with open(fname, 'rb') as f: # lgtm[py/path-injection]
self.send_response(200)
self.send_header('Content-type', cont)
self.end_headers()