From ecffbb5df5d7a03ce499b4ad28f2094d5f4f41b0 Mon Sep 17 00:00:00 2001 From: Matthew Levan Date: Wed, 25 Oct 2017 14:30:14 -0700 Subject: [PATCH] Added 'Accept: application/json' hiss header --- lib/oauth2.hoon | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/oauth2.hoon b/lib/oauth2.hoon index 8ddeefacaf..4dafc4ae0c 100644 --- a/lib/oauth2.hoon +++ b/lib/oauth2.hoon @@ -19,7 +19,14 @@ |= {a/purl b/quay} ^- hiss =. b (quay:hep-to-cab b) =- [a %post - ?~(b ~ (some (as-octt +:(tail:earn b))))] - (my content-type+['application/x-www-form-urlencoded']~ ~) + %^ my + :+ %accept + 'application/json' + ~ + :+ %content-type + 'application/x-www-form-urlencoded' + ~ + ~ :: ++ mean-wall !. |= {a/term b/tape} ^+ !!