Changeset 471 for TFP-WebServer/WebServer/src/WebAPI/APIs/LogApi.cs
- Timestamp:
- Aug 21, 2023, 1:32:40 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/WebServer/src/WebAPI/APIs/LogApi.cs
r467 r471 23 23 24 24 protected override void HandleRestGet (RequestContext _context) { 25 if (_context. Request.QueryString ["count"] == null || !int.TryParse (_context.Request.QueryString["count"], out int count)) {25 if (_context.QueryParameters ["count"] == null || !int.TryParse (_context.QueryParameters ["count"], out int count)) { 26 26 count = 50; 27 27 } … … 39 39 } 40 40 41 if (_context. Request.QueryString ["firstLine"] == null || !int.TryParse (_context.Request.QueryString["firstLine"], out int firstLine)) {41 if (_context.QueryParameters ["firstLine"] == null || !int.TryParse (_context.QueryParameters ["firstLine"], out int firstLine)) { 42 42 firstLine = count > 0 ? LogBuffer.Instance.OldestLine : LogBuffer.Instance.LatestLine; 43 43 }
Note:
See TracChangeset
for help on using the changeset viewer.