You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a reason why the response is chunked here and not just sent normally with content-length? I'm guessing timeouts? I see #905 which makes it look like content-length should be getting set but when I attach a debugger the code that gets hit is https://github.com/simonw/datasette/blob/main/datasette/views/database.py#L302 which doesn't set it so I assume there's different code involved.
Setting content-length would be useful for my use-case which involves showing a progress bar for the request. MDN indicates mixing chunked and content-length might be a bad idea but I thought I'd suggest it in case it might work here.
The text was updated successfully, but these errors were encountered:
With the latest Datasette (0.64.1 or latest git HEAD), when I serve my database like this,
and try to download from http://127.0.0.1:8001/my.db,
I expect a content-length header since I think I'm downloading a static file from the filesystem but it's not set and the response is chunked instead:
Is there a reason why the response is chunked here and not just sent normally with content-length? I'm guessing timeouts? I see #905 which makes it look like content-length should be getting set but when I attach a debugger the code that gets hit is https://github.com/simonw/datasette/blob/main/datasette/views/database.py#L302 which doesn't set it so I assume there's different code involved.
Setting content-length would be useful for my use-case which involves showing a progress bar for the request. MDN indicates mixing chunked and content-length might be a bad idea but I thought I'd suggest it in case it might work here.
The text was updated successfully, but these errors were encountered: