wbzyl-rack-codehighlighter 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rack/codehighlighter.rb +1 -1
  2. metadata +1 -1
@@ -39,7 +39,7 @@ module Rack
39
39
  end
40
40
 
41
41
  body = doc.to_html
42
- headers['content-length'] = body.bytesize.to_s
42
+ headers['content-length'] = bytesize(body).to_s
43
43
 
44
44
  log(env, status, headers, began_at) if @opts[:logging]
45
45
  [status, headers, [body]]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wbzyl-rack-codehighlighter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wlodek Bzyl