Skip to content

Commit 91c5dd8

Browse files
committed
vsgi: Fix broken check for buffering the SCGI body
1 parent 74bd6c7 commit 91c5dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vsgi/servers/vsgi-scgi.vala

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ namespace VSGI.SCGI {
235235
yield reader.fill_async ((ssize_t) content_length - (ssize_t) reader.get_available (), priority, cancellable);
236236
}
237237

238-
if (content_length < reader.get_available ()) {
238+
if (reader.get_available () < content_length) {
239239
throw new Error.FAILED ("The request body (%sB) could not be buffered.",
240240
content_length.to_string ());
241241
}

0 commit comments

Comments
 (0)