Pārlūkot izejas kodu

Ensure GIDL-RPC replies have appropriate Content-Type headers.

Jamey Sharp 9 gadi atpakaļ
vecāks
revīzija
5992b7a474
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/Gidl/Backend/Rpc.hs

+ 1 - 0
src/Gidl/Backend/Rpc.hs

@@ -307,6 +307,7 @@ readAttr (attrname, (AttrMethod _ t)) suffix msg =
                      <+> text (constrName suffix msg)
                      <+> dot <+> text "SequenceNum.SequenceNum"
 
+    , text "Snap.modifyResponse $ Snap.setContentType \"application/json\""
     , text "Snap.writeLBS (encode resp)"
     ]
   where