-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Labels
Milestone
Description
by dahankzter:
What does 'go version' print? go version go1.3.3 linux/amd64 and go version devel +6d6eef8d916b Sat Oct 11 22:01:04 2014 +1100 linux/amd64 What steps reproduce the problem? Assuming Nginx default index.html at localhost and a README.md at github (in the playground link) http://play.golang.org/p/u3j4oTlcm0 If possible, include a link to a program on play.golang.org. 1. Try with the url pointintg to localhost and see the body nicely truncated. 2. Switch the url to the github README.md and watch it disappear. 3. What happened? There is no body at all in (2) What should have happened instead? I expect a body to appear with the size specified by the range Please provide any additional information below. curl handles this for example in: curl -vv --header 'Range: bytes=0-5' 'http://localhost/index.html' The difference seems to be that the failing case does not have a Content-Length in the response which I believe the spec does not mandate.