liberapay / git-lfs-fetch.py

Lightweight Git Large File Storage fetcher written in python
31 stars 13 forks source link

Handle too big requests by recursively splitting requests on HTTP 413 responses. #7

Closed swistakm closed 5 years ago

swistakm commented 5 years ago

While working with this library I've encountered a situation when fetch_urls() makes a too big request so remote server responds with 413 Request Entity Too Large response.

This change allows to handle 413 responses by recursively splitting requests into smaller "chunks" whenever error occurs.

Changaco commented 5 years ago

Looks okay to me.