diff --git a/http--1.0--1.1.sql b/http--1.0--1.1.sql index 1065ad9..22b86e0 100644 --- a/http--1.0--1.1.sql +++ b/http--1.0--1.1.sql @@ -56,13 +56,13 @@ CREATE OR REPLACE FUNCTION http_put(uri VARCHAR, content VARCHAR, content_type V AS $$ SELECT http(('PUT', $1, NULL, $3, $2)::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 http(('DELETE', $1, NULL, NULL, NULL)::http_request) $$ + AS $$ SELECT http(('DELETE', $1, NULL, $3, $2)::http_request) $$ LANGUAGE 'sql'; CREATE OR REPLACE FUNCTION urlencode(string VARCHAR) RETURNS TEXT AS 'MODULE_PATHNAME' LANGUAGE 'c' - IMMUTABLE STRICT; \ No newline at end of file + IMMUTABLE STRICT;