]> gitweb.factorcode.org Git - factor.git/commitdiff
visionect: change http-backend to use CRLF.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 23 Apr 2020 18:23:58 +0000 (11:23 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 23 Apr 2020 18:23:58 +0000 (11:23 -0700)
extra/visionect/visionect.factor

index fd76020453bfc74be44f5940426382612bfc9a91..c4e159b2ba88ad8dbdc79e1ceb9be6f182c3aea5 100644 (file)
@@ -180,11 +180,11 @@ PRIVATE>
     "multipart/form-data; boundary=\"" boundary "\"" 3append :> content-type
     content-type <post-data>
     [
-        "--" % boundary % "\n" %
-        "Content-Disposition: form-data; name=\"image\"; filename=\"image.png\"\n" %
-        "Content-Type: image/png\n" %
-        "\n" %
-        png-data % "\n" %
-        "--" % boundary % "--\n" %
+        "--" % boundary % "\r\n" %
+        "Content-Disposition: form-data; name=\"image\"; filename=\"image.png\"\r\n" %
+        "Content-Type: image/png\r\n" %
+        "\r\n" %
+        png-data % "\r\n" %
+        "--" % boundary % "--\r\n" %
     ] B{ } make >>data
     "/backend/" uuid append visionect-post drop ;