Kouhei Sutou 2019-03-03 05:00:03 +0900 (Sun, 03 Mar 2019) Revision: 0f46c9fb6907e591befc740f674785ce2aa469aa https://github.com/ranguba/chupa-text/commit/0f46c9fb6907e591befc740f674785ce2aa469aa Message: Reduce memory usage to guess mime type Modified files: lib/chupa-text/input-data.rb Modified: lib/chupa-text/input-data.rb (+4 -0) =================================================================== --- lib/chupa-text/input-data.rb 2019-03-03 04:47:26 +0900 (94623a8) +++ lib/chupa-text/input-data.rb 2019-03-03 05:00:03 +0900 (db1ca9f) @@ -36,6 +36,10 @@ module ChupaText @content.body end + def peek_body(size) + @content.peek_body(size) + end + def size @content.size end -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190303/c5580642/attachment.html>