Explorar el Código

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

Jamey Sharp hace 8 años
padre
commit
5992b7a474
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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