Permalink
Browse files

multibyte supports for ruby 1.9.2

  • Loading branch information...
beyond authored and grosser committed Jun 12, 2011
1 parent 1c686ac commit 9c56745268395a6f6edefc5bc1f943f1af3c2204
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/vendor/estraierpure.rb
@@ -936,7 +936,7 @@ def shuttle_url(url, pxhost, pxport, outsec, reqheads, reqbody, resheads, resbod
sock.printf("%s\r\n", line)
end
end
- sock.printf("Content-Length: %d\r\n", reqbody.length) if reqbody
+ sock.printf("Content-Length: %d\r\n", reqbody.bytesize) if reqbody
sock.printf("\r\n")
sock.write(reqbody) if reqbody
line = sock.gets.chomp

0 comments on commit 9c56745

Please sign in to comment.