URL-encode Location header (closes #588)

The database returns an array of key-value strings like `"k1=eq.hello
world"`. Haskell URL-encodes the portion after the equal sign and joins
them with `&`.

Includes updates to tests in Feature.InsertSpec: The CompoundPK has been
modified to have one Int and one String. We attempt to add a key with a
String that has spaces and other special characters. This requires that
the returned Location header is properly URL-encoded.
This commit is contained in:
Christopher League
2016-05-20 10:42:55 -04:00
parent 2cb04c1d5c
commit 5c38b4328b
6 changed files with 62 additions and 35 deletions
+1 -1
View File
@@ -443,7 +443,7 @@ CREATE TABLE complex_items (
CREATE TABLE compound_pk (
k1 integer NOT NULL,
k2 integer NOT NULL,
k2 text NOT NULL,
extra integer
);