Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something wrong with gzipped testing server #62

Open
rexim opened this issue Sep 5, 2015 · 1 comment
Open

Something wrong with gzipped testing server #62

rexim opened this issue Sep 5, 2015 · 1 comment

Comments

@rexim
Copy link
Owner

rexim commented Sep 5, 2015

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
Copy link
Owner Author

rexim commented Jul 24, 2017

The root cause is here

self.send_header("Content-Length", str(fs[6]))
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant