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:
commit
1ed9d7333d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user