about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--ext/unicorn_http/unicorn_http.rl2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/unicorn_http/unicorn_http.rl b/ext/unicorn_http/unicorn_http.rl
index 19091f4..ed9c359 100644
--- a/ext/unicorn_http/unicorn_http.rl
+++ b/ext/unicorn_http/unicorn_http.rl
@@ -383,6 +383,8 @@ static void advance_str(VALUE str, off_t nr)
   if (len == 0)
     return;
 
+  rb_str_modify(str);
+
   assert(nr <= len);
   len -= nr;
   if (len > 0) /* unlikely, len is usually 0 */