You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having trouble serving binary files with FastCGI::NativeCall::PSGI
I have traced this through to a call to XS_Print which takes a C-style string, so there seems to be no way to send binary data via FastCGI::NativeCall.
I have successfully hacked around it by adding a XS_Write that takes a length argument (and a Write method that takes a Blob instead of Str.) I am just wondering if I missed something and I'm using the API wrong, or if this is actually a missing feature.
Regards
Aleks
The text was updated successfully, but these errors were encountered:
int XS_Write(void *buf, int len, FCGX_Request *request)
{
int ret;
if (!request->out)
return -1;
ret = FCGX_PutStr(buf, len, request->out);
return ret;
}
The text was updated successfully, but these errors were encountered: