Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Firefox, RStudio Server, and latest Shiny/httpuv don't work together #2940
TL;DR: This line doesn't account for the fact that some browsers send
With the combination of httpuv 1.4.x, RStudio Server, and Firefox, running Shiny apps through the session proxy doesn't work. The problem is fixed if you change ANY of those three though (switching to older httpuv, OR RStudio Desktop, OR Chrome all fix it).
The problem is with the HTTP request that initiates a WebSocket connection, and specifically, with that request's Connection header. Chrome sends
so both browsers are passing legal values.
However, RStudio Server's proxy logic assumes that the incoming request's Connection header must be equal to "Upgrade" to be considered an upgrade, and if it is not, it changes the header to
httpuv <1.4 doesn't care if
Steps to reproduce the problem
Describe the problem in detail
The app's page goes grey immediately
Describe the behavior you expected
The app should work correctly