Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 247391f

Browse files
committed
Force encoding on response from node server
To handle bug in Net::HTTP (https://bugs.ruby-lang.org/issues/2567)
1 parent 261b84a commit 247391f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/vueport/node_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def initialize(content, path: '/')
1010
end
1111

1212
def run!
13-
render.html_safe
13+
render.force_encoding('UTF-8').encode!.html_safe
1414
end
1515

1616
private

lib/vueport/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Vueport
2-
VERSION = '0.1.2'.freeze
2+
VERSION = '0.1.3'.freeze
33
end

0 commit comments

Comments
 (0)