mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
remove content-length limit
This commit is contained in:
@@ -482,9 +482,6 @@ const PendingScript = struct {
|
||||
std.debug.assert(self.script.source.remote.capacity == 0);
|
||||
var buffer = self.manager.buffer_pool.get();
|
||||
if (transfer.getContentLength()) |cl| {
|
||||
if (cl > 100 * 1024 * 1024) {
|
||||
return error.ResponseTooLarge;
|
||||
}
|
||||
try buffer.ensureTotalCapacity(self.manager.allocator, cl);
|
||||
}
|
||||
self.script.source = .{ .remote = buffer };
|
||||
|
||||
@@ -440,9 +440,6 @@ pub const XMLHttpRequest = struct {
|
||||
self.dispatchEvt("readystatechange");
|
||||
|
||||
if (transfer.getContentLength()) |cl| {
|
||||
if (cl > 100 * 1024 * 1024) {
|
||||
return error.ResponseTooLarge;
|
||||
}
|
||||
try self.response_bytes.ensureTotalCapacity(self.arena, cl);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user