Skip to content

Commit

Permalink
forward stdin in fastcgi controller
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneu committed May 8, 2019
1 parent b94e326 commit ef8626a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Classes/FastCGIWebController.cls
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,19 @@ Private Function IWebController_ProcessRequest(request As HttpRequest) As HttpRe
Next

fcgiClient.WriteParams params

If Len(request.Body) > 0 Then
Dim stdin As String
stdin = request.Body

Do While Len(stdin) > 65535
Dim chunk As String
chunk = StringExtensions.Substring(stdin, 0, 65535)
fcgiClient.WriteInput chunk
stdin = StringExtensions.Substring(stdin, 65535, 0)
Loop
End If

fcgiClient.WriteInput ""

Dim typeInfo As FastCGITypeInfo
Expand Down

0 comments on commit ef8626a

Please sign in to comment.