Skip to content

Commit

Permalink
http--1.0--1.1.sql DELETE accepts content
Browse files Browse the repository at this point in the history
  • Loading branch information
lucajoos authored Mar 3, 2022
1 parent 8147978 commit a6dc060
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions http--1.0--1.1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
IMMUTABLE STRICT;

0 comments on commit a6dc060

Please sign in to comment.