You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ca05660
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AGENTS.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Treat this project as a temporary file-sharing tool for trusted environments. It
22
22
- Adds an HTML upload form to directory listings.
23
23
- Stores uploaded files in the requested directory after sanitizing the uploaded filename.
24
24
- Avoids overwriting existing files by appending `_` to the target filename.
25
-
-Rejects uploads larger than the configured upload limit; the default is 100 MiB and can be raised with `--max-upload-size MIB`.
25
+
-Does not limit upload size by default; `--max-upload-size MIB` can set an explicit limit.
26
26
- Uses Python standard library modules only.
27
27
28
28
## Important Implementation Notes
@@ -46,8 +46,8 @@ When making changes, prioritize these issues first:
46
46
3. Preserve safer network defaults.
47
47
The default bind address is `127.0.0.1`; document `0.0.0.0` as an explicit LAN/public option.
48
48
49
-
4.Maintain upload limits.
50
-
Large or slow uploads can exhaust disk, memory, or worker capacity. The current limit is 100 MiB.
49
+
4.Keep upload size behavior explicit.
50
+
Large or slow uploads can exhaust disk, memory, or worker capacity. The default is currently unlimited; document any limit changes clearly and keep `--max-upload-size` behavior covered by tests.
51
51
52
52
5. Improve request robustness.
53
53
Handle missing `Content-Type`, missing `content-length`, malformed multipart bodies, and interrupted uploads without crashing the server.
@@ -105,7 +105,8 @@ Keep these files aligned:
105
105
106
106
-`simple_http_server.py`: source version in `__version__`.
107
107
-`CHANGELOG.md`: released changes.
108
-
-`README.md`: install, run, Docker, support status, and security caveats.
108
+
-`README.md`: English install, run, Docker, support status, and security caveats.
109
+
-`README.zh-CN.md`: Simplified Chinese translation of `README.md`; update it whenever the English README changes.
109
110
-`SECURITY.md`: supported versions and vulnerability contact.
110
111
-`.github/workflows/github-actions-test.yml`: supported Python versions and CI checks.
This server is intended for temporary file sharing in trusted environments. The default bind address is `127.0.0.1`; use `--bind 0.0.0.0` only when you explicitly want other hosts to connect.
51
53
52
-
Uploaded file names are sanitized, upload results and directory listings escape user-controlled text, and upload requests larger than 100 MiB are rejected by default. Use`--max-upload-size MIB` to raise that limit in trusted environments.
54
+
Uploaded file names are sanitized, and upload results and directory listings escape user-controlled text. Upload size is unlimited by default; use`--max-upload-size MIB` to set a limit when you need one in trusted environments.
0 commit comments