Permalink
Browse files

fix psgi post buffering

  • Loading branch information...
1 parent b87a284 commit f226f2942841773265346fbbfe2d7d715de905f2 @unbit committed Apr 3, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 plugins/psgi/psgi_loader.c
@@ -9,8 +9,11 @@ extern struct uwsgi_plugin psgi_plugin;
XS(XS_input_seek) {
dXSARGS;
+ struct wsgi_request *wsgi_req = current_wsgi_req();
psgi_check_args(1);
+ uwsgi_request_body_seek(wsgi_req, SvIV(ST(0)));
+
XSRETURN(0);
}

0 comments on commit f226f29

Please sign in to comment.