From 298bbddeb1dcc135c075d484f283f409f0d0d055 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Thu, 23 Apr 2020 11:23:58 -0700 Subject: [PATCH] visionect: change http-backend to use CRLF. --- extra/visionect/visionect.factor | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extra/visionect/visionect.factor b/extra/visionect/visionect.factor index fd76020453..c4e159b2ba 100644 --- a/extra/visionect/visionect.factor +++ b/extra/visionect/visionect.factor @@ -180,11 +180,11 @@ PRIVATE> "multipart/form-data; boundary=\"" boundary "\"" 3append :> content-type content-type [ - "--" % 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 ;