Skip to content

Commit 2da83a7

Browse files
author
Benjamin Maurer
committed
Add clarifying comment for content-type.
1 parent d197ee3 commit 2da83a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frameworks/Haskell/postgrest/src/fortunes.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ create or replace function fortune_template("Fortune") returns text as $$
99
$$ language sql immutable;
1010

1111
create or replace function fortunes() returns "text/html" as $$
12+
-- This is only necessary bc. of the benchmark: The domain gives us content-type: text/html,
13+
-- but the benchmark explicitly tests for the charset in the content-type.
1214
select set_config('response.headers', '[{"Content-Type": "text/html; charset=utf-8"}]', true);
1315

1416
select '<!DOCTYPE html><html><head><title>Fortunes</title></head><body><table><tr><th>id</th><th>message</th></tr>'

0 commit comments

Comments
 (0)