diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 85fe4fe..2d643f5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,8 @@ jobs: strategy: matrix: - ruby-version: ['3.2', '3.1', '3.0'] + ruby-version: ['3.3', '3.2', '3.1'] + node-version: ['16', '18', '20', '22'] steps: - uses: actions/checkout@v3 @@ -21,7 +22,11 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} - name: Install dependencies run: bundle install - name: Run tests - run: bundle exec rake \ No newline at end of file + run: bundle exec rake diff --git a/lib/execjs/pcruntime/context_process_runtime.rb b/lib/execjs/pcruntime/context_process_runtime.rb index d9a1ce0..e968692 100644 --- a/lib/execjs/pcruntime/context_process_runtime.rb +++ b/lib/execjs/pcruntime/context_process_runtime.rb @@ -197,6 +197,7 @@ def post_request(socket_path, path, content_type = nil, body = nil) socket.write_timeout *= 100 request = Net::HTTP::Post.new(path) + request['Host'] = 'localhost' request['Connection'] = 'close' unless content_type.nil? request['Content-Type'] = content_type