Proxy cache passes GET instead of HEAD to upstream... so we have a 403.
This version include these fixes.
- Remove $request_method from $string_to_sign and pass static string "GET" instead
- Remove proxy_buffering directive for allowing the nginx cache
Proxy cache passes GET instead of HEAD to upstream... so we have a 403.
This version include these fixes.
Erlang
curl -O http://erlang.org/download/otp_src_R15B01.tar.gz
tar zxvf otp_src_R15B01.tar.gz
cd otp_src_R15B01CFLAGS="-O0 -DREDEFINE_FD_SETSIZE -DFD_SETSIZE=15000 -D_DARWIN_UNLIMITED_SELECT" ./configure --disable-hipe --enable-smp-support --enable-threads \
--enable-kernel-poll --enable-darwin-64bit| local resty_sha1 = require "resty.sha1" | |
| local upload = require "resty.upload" | |
| local chunk_size = 4096 | |
| local form = upload:new(chunk_size) | |
| local sha1 = resty_sha1:new() | |
| local file | |
| while true do | |
| local typ, res, err = form:read() |