From 81479780e4b532392063df1ebfdab8a095a99080 Mon Sep 17 00:00:00 2001 From: Luca Joos Date: Thu, 3 Mar 2022 16:31:49 +0100 Subject: [PATCH] http--1.4.sql DELETE accepts content --- http--1.4.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http--1.4.sql b/http--1.4.sql index f6054b7..bd26c8e 100644 --- a/http--1.4.sql +++ b/http--1.4.sql @@ -81,9 +81,9 @@ CREATE OR REPLACE FUNCTION http_patch(uri VARCHAR, content VARCHAR, content_type AS $$ SELECT @extschema@.http(('PATCH', $1, NULL, $3, $2)::@extschema@.http_request) $$ LANGUAGE 'sql'; -CREATE OR REPLACE FUNCTION http_delete(uri VARCHAR) +CREATE OR REPLACE FUNCTION http_delete(uri VARCHAR, content VARCHAR, content_type VARCHAR) RETURNS http_response - AS $$ SELECT @extschema@.http(('DELETE', $1, NULL, NULL, NULL)::@extschema@.http_request) $$ + AS $$ SELECT @extschema@.http(('DELETE', $1, NULL, $3, $2)::@extschema@.http_request) $$ LANGUAGE 'sql'; CREATE OR REPLACE FUNCTION http_head(uri VARCHAR)