]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/Preprocess.hs
"driftTo Done" was trying to change the response header, which is impossible.
[Lucu.git] / Network / HTTP / Lucu / Preprocess.hs
index 74d66531f1d0a80c24a5b66734ca6267f1a821db..802338c46dddbf7df1fb9fbe06c25620f5aa6075 100644 (file)
@@ -78,11 +78,10 @@ preprocess itr
                 mapM_ (preprocessHeader itr) (reqHeaders req)
     where
       setStatus itr status
-          = writeItr itr itrResponse $ Just (Response {
-                                               resVersion = HttpVersion 1 1
-                                             , resStatus  = status
-                                             , resHeaders = []
-                                             })
+          = updateItr itr itrResponse
+            $ \ res -> res {
+                         resStatus = status
+                       }
 
       preprocessHeader itr (name, value)
           = case map toLower name of