Skip to content

Commit 3ee615d

Browse files
committed
fix(Http): make headers & body input fields optional
Users may now omit the two fields. Previously, doing so would result in that particular input being disregarded, thus not sending a request.
1 parent 8a364ab commit 3ee615d

File tree

1 file changed

+2
-2
lines changed
  • integrations/builtin/src/main/kotlin/me/snoty/integration/builtin/http

1 file changed

+2
-2
lines changed

integrations/builtin/src/main/kotlin/me/snoty/integration/builtin/http/HttpNodeModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ data class HttpNodeSettings(
2929
data class HttpNodeInput(
3030
val url: String,
3131
val method: HttpMethod,
32-
val headers: Map<@FieldDefaultValue("My-Header") String, @FieldDefaultValue("Header Value") String>,
33-
val body: String,
32+
val headers: Map<@FieldDefaultValue("My-Header") String, @FieldDefaultValue("Header Value") String> = emptyMap(),
33+
val body: String? = null,
3434
@FieldDescription("Whether to expect the request to succeed. When set to false, non-200 status codes will cause the Flow to fail.")
3535
@FieldDefaultValue("false")
3636
val expectSuccess: Boolean = true, // set to true for backwards compatibility

0 commit comments

Comments
 (0)