Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

Commit 1572efd

Browse files
working again
1 parent efb2ef1 commit 1572efd

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ RUN cd /tmp/nginx \
3939
ADD src/ /tmp/nginx/modules/nginx-lambda/
4040

4141
RUN cd /tmp/nginx \
42-
&& make \
42+
&& make -j 2 \
4343
&& make install
4444

4545
CMD ["nginx", "-c", "/etc/nginx/nginx.conf", "-g", "daemon off;"]

src/ngx_http_lambda_module.c

-5
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,6 @@ static ngx_int_t ngx_http_lambda_handler(ngx_http_request_t *req)
106106
ngx_buf_t *buf;
107107
ngx_chain_t out;
108108

109-
/* we response to 'GET' requests only, for now */
110-
if (!(req->method & NGX_HTTP_GET)) {
111-
return NGX_HTTP_NOT_ALLOWED;
112-
}
113-
114109
/* Set the Content-Type header. */
115110
req->headers_out.content_type.len = sizeof("application/json") - 1;
116111
req->headers_out.content_type.data = (u_char *) "application/json";

0 commit comments

Comments
 (0)