Skip to content

Commit

Permalink
fix bug in handling of unusually large payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel committed Nov 29, 2023
1 parent a54bc64 commit c865b8a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Since [ECharts](https://echarts.apache.org/) is the main dependency of this
application, major version changes in ECharts will also trigger a major version
change in this application.

## Version 5.0.11 (2023-11-29)

* __[bug fix]__
Fix error in handling of unusually large payloads.

## Version 5.0.10 (2023-09-15)

* __[maintenance]__
Expand Down
2 changes: 1 addition & 1 deletion export-server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion export-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "echarts-node-export-server",
"version": "5.0.10",
"version": "5.0.11",
"description": "ECharts Node.js export server",
"repository": {
"url": "https://gitlab.com/striezel/echarts-node-export-server.git",
Expand Down
2 changes: 1 addition & 1 deletion export-server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const server = http.createServer(function(req, res) {
res.statusCode = 413; // 413 == Payload Too Large
res.setHeader('Content-Type', 'text/plain');
res.end('Request size exceeds reasonable limits!\n');
req.connecion.destroy();
req.connection.destroy();
killed = true;
return;
}
Expand Down

0 comments on commit c865b8a

Please sign in to comment.