Skip to content

Commit 08d0558

Browse files
authored
Merge pull request #19 from MDA2AV/fix/h2o-POST
Fix h2o not allowing POST commands
2 parents e36776d + 9d25ae3 commit 08d0558

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/Servers/H2OServer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM ubuntu:24.04 AS build
2-
RUN apt-get update && apt-get install -y cmake gcc g++ pkg-config libssl-dev zlib1g-dev git && rm -rf /var/lib/apt/lists/*
2+
RUN apt-get update && apt-get install -y cmake gcc g++ pkg-config libssl-dev zlib1g-dev git ruby bison && rm -rf /var/lib/apt/lists/*
33
RUN git clone --recurse-submodules --depth 1 https://github.com/h2o/h2o.git /src/h2o
44
WORKDIR /src/h2o/build
5-
RUN cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local && make -j$(nproc) && make install
5+
RUN cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_MRUBY=ON && make -j$(nproc) && make install
66

77
FROM ubuntu:24.04
88
RUN apt-get update && apt-get install -y libssl3t64 && rm -rf /var/lib/apt/lists/*

src/Servers/H2OServer/h2o.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ hosts:
33
default:
44
paths:
55
/:
6-
file.dir: /var/www
6+
mruby.handler: |
7+
proc {|env| [200, {"content-type" => "text/plain"}, ["OK"]] }

0 commit comments

Comments
 (0)