diff options
-rw-r--r-- | metadata/fidus-prod.fd | 9 | ||||
-rw-r--r-- | metadata/fidus-test.fd | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/metadata/fidus-prod.fd b/metadata/fidus-prod.fd index d3bb9d0..503513a 100644 --- a/metadata/fidus-prod.fd +++ b/metadata/fidus-prod.fd @@ -30,6 +30,11 @@ - fork: - select as ds - break + - fork: + # need a uniq name to avoid format problem + # pyFF caches accept-type and requse selection :-( + - select as ds-sp: + - break - break - when request: - select @@ -53,3 +58,7 @@ - discojson - emit application/json: - break + - when accept application/json-sp: + - discojson_sp + - emit application/json: + - break diff --git a/metadata/fidus-test.fd b/metadata/fidus-test.fd index 32d8ef3..cf99db5 100644 --- a/metadata/fidus-test.fd +++ b/metadata/fidus-test.fd @@ -27,6 +27,11 @@ - fork: - select as ds - break + - fork: + # need a uniq name to avoid format problem + # pyFF caches accept-type and requse selection :-( + - select as ds-sp: + - break - break - when request: - select @@ -50,3 +55,7 @@ - discojson - emit application/json: - break + - when accept application/json-sp: + - discojson_sp + - emit application/json: + - break |