exe/faastruby-server in faastruby-0.4.11 vs exe/faastruby-server in faastruby-0.4.12
- old
+ new
@@ -20,10 +20,10 @@
set :server, %w[puma]
set :show_exceptions, true
set :run, true
register Sinatra::MultiRoute
-route :get, :post, :put, :patch, :delete, '/:workspace_name/:function_name' do
+route :head, :get, :post, :put, :patch, :delete, '/:workspace_name/:function_name' do
path = "#{params[:workspace_name]}/#{params[:function_name]}"
headers = env.select { |key, value| key.include?('HTTP_') || ['CONTENT_TYPE', 'CONTENT_LENGTH', 'REMOTE_ADDR', 'REQUEST_METHOD', 'QUERY_STRING'].include?(key) }
if headers.has_key?("HTTP_FAASTRUBY_RPC")
body = nil
rpc_args = parse_body(request.body.read, headers['CONTENT_TYPE'], request.request_method) || []