ソースを参照

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

Jamey Sharp 9 年 前
コミット
5992b7a474
1 ファイル変更1 行追加0 行削除
  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