Comments (6)
Reproduced locally for LuaJIT 2.1.0, again, get the expected file with prefix and suffix, prefix is e8119\r\n
and suffix is the same, \r\n0\r\n\r\n
. Reproduction done using urllib.urlretrieve
, which is what hererocks calls.
from hererocks.
Calling urlretrieve
in a loop shows that the first download for each url is broken, the following ones are OK. Perhaps either github or urlretrieve
handle chunked encoding incorrectly?..
from hererocks.
Using curl --verbose
, indeed, GitHub appears to use Transfer-Encoding: chunked
, but only on the first request for each url, with a reset after some delay.
from hererocks.
Of course, the "prefix" is file length in hexadecimal, so the broken file is just full chunk encoded file. Not sure why GitHub decides to send the whole file in one chunk, or why urlretrieve can't handle it,
from hererocks.
OK, so urllib
doesn't support chunked transfer (httplib
has functions for working with it but they are not used), but urllib2
does, and so does urllib.request
from Python 3.
from hererocks.
Fixed in @a9b8ab9.
from hererocks.
Related Issues (20)
- reproduce LUA_PATH and LUA_CPATH order in Lua 5.1 and LuaJIT HOT 4
- Problem with Visual Studio and HereRocks HOT 6
- error message is not printed in Python 2 due to encoding errors HOT 1
- Compile CLUA5* with SO lib target HOT 2
- luarocks don't use --cflags HOT 6
- Cannot install using Visual Studio 2017 HOT 4
- Fallback to mirrors HOT 4
- Lua installation from Git fails due to overhaul of lua/lua repo HOT 3
- Why is luaX.dll installed into bin instead of lib? HOT 1
- Luarocks build failure HOT 1
- lua_objlen with Lua 5.3 using -DLUA_COMPAT_5_1 HOT 1
- Update for luarocks 3.0.0 release HOT 1
- Building lua 5.1 fails to find ncurses on debian stretch HOT 1
- Add config file
- Option to just download HOT 2
- Problems with luarock 3.0.2 under Windows
- LuaRocks download path changed in upstream cause fetching LuaRocks fail HOT 2
- THIS REPO IS NO LONGER MAINTAINED: go to https://github.com/luarocks/hererocks HOT 2
- Support Bash on Windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hererocks.