org-cliplink
org-cliplink copied to clipboard
Something wrong with gzipped testing server
Steps to reproduce:
- Start the testing server:
$ ./run-testing-server.sh - Make a request with cURL to one of the gzipped servers:
$ curl http://localhost:8002/http.html
Observe the following error: curl: (18) transfer closed with 22 bytes remaining to read
Even though it works fine with browsers and the current implementation of org-cliplink with url.el it may become a problem when we switch to cURL after resolving #60
The root cause is here https://github.com/rexim/org-cliplink/blob/0e7629123784c1b12ddfa52fffc4520c357734d5/request_handlers/GzipSimpleHTTPServer.py#L97 The size is simply calculated incorrectly. If you remove this line, the problem is not reproducible anymore. Can be a possible solution if I don't figure out how to properly calculate the length.