Skip to content

Commit 68c4398

Browse files
committed
Stripping path from file name as well
1 parent ea30bbd commit 68c4398

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66

77
[project]
88
name = "socketsecurity"
9-
version = "2.0.45"
9+
version = "2.0.46"
1010
requires-python = ">= 3.10"
1111
license = {"file" = "LICENSE"}
1212
dependencies = [

Diff for: socketsecurity/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__author__ = 'socket.dev'
2-
__version__ = '2.0.45'
2+
__version__ = '2.0.46'

Diff for: socketsecurity/core/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def load_files_for_sending(files: List[str], workspace: str) -> List[Tuple[str,
307307
key = key.lstrip(workspace)
308308

309309
f = open(file_path, 'rb')
310-
payload = (key, (name, f))
310+
payload = (key, (name.lstrip(workspace), f))
311311
send_files.append(payload)
312312

313313
return send_files

0 commit comments

Comments
 (0)