org-cliplink icon indicating copy to clipboard operation
org-cliplink copied to clipboard

Something wrong with gzipped testing server

Open rexim opened this issue 10 years ago • 1 comments

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

rexim avatar Sep 05 '15 12:09 rexim

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.

rexim avatar Jul 24 '17 10:07 rexim