Skip to content

Commit 6f296ca

Browse files
SchlenkRSchlenkR
authored andcommitted
Revert "x"
This reverts commit ad56911.
1 parent 14927dd commit 6f296ca

File tree

1 file changed

+26
-29
lines changed

1 file changed

+26
-29
lines changed

src/FsHttp/Dsl.CE2.fs

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -456,30 +456,31 @@ module MultipartElement =
456456

457457

458458

459-
let res1 =
460-
http {
461-
POST "https://github.com/CuminAndPotato/PXL-JAM"
462-
463-
AcceptLanguage "en"
464-
Authorization "credOuter"
465-
if true then
466-
Authorization "credInner"
467-
468-
body
469-
json """
470-
{
471-
name: "PXL Clock",
472-
description: "A Beautiful and Fun Clock",
473-
programmingLanguage: [
474-
"F#", "C#", "JavaScript", "Python", "TypeScript" ]
475-
}
476-
"""
477-
ContentType "application/json"
478-
}
479-
480-
459+
#if INTERACTIVE
481460

482-
let res2 =
461+
http {
462+
POST "https://github.com/CuminAndPotato/PXL-JAM"
463+
464+
AcceptLanguage "en"
465+
Authorization "credOuter"
466+
if true then
467+
Authorization "credInner"
468+
469+
body
470+
json """
471+
{
472+
name: "PXL Clock",
473+
description: "A Beautiful and Fun Clock",
474+
programmingLanguage: [
475+
"F#", "C#", "JavaScript", "Python", "TypeScript" ]
476+
}
477+
"""
478+
ContentType "application/json"
479+
}
480+
481+
482+
483+
let res =
483484
http {
484485
POST "http"
485486
Accept "application/json"
@@ -492,15 +493,11 @@ let res2 =
492493
filePart "src/FsHttp/Dsl.fs"
493494

494495
textPart "das" "hurz1"
495-
if true then
496-
ContentTypeMultipart "application/json"
497-
498-
if true then
499-
textPart "das" "hurz1"
500-
ContentTypeMultipart "application/json"
496+
ContentTypeMultipart "application/json"
501497

502498
// textPart "Lamm" "hurz2"
503499
// textPart "schrie" "hurz3"
504500
}
505501

506502

503+
#endif

0 commit comments

Comments
 (0)