Skip to content

Commit

Permalink
decode URLs in staticHandler func - fixes #1565 (via #1566)
Browse files Browse the repository at this point in the history
  • Loading branch information
bborgesr committed Feb 1, 2017
1 parent 79a085a commit 220c7e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Expand Up @@ -9,6 +9,8 @@ shiny 1.0.0.9000

### Minor new features and improvements

* Fixed [#1565](https://github.com/rstudio/shiny/issues/1565), which meant that resources with spaces in their names return HTTP 404 .[#1566](https://github.com/rstudio/shiny/pull/1566)

* Exported `session$user` (if it exists) to the client-side; it's accessible in the Shiny object: `Shiny.user`. ([#1563](https://github.com/rstudio/shiny/pull/1563))

* Added support for HTML5's `pushState` which allows for pseudo-navigation
Expand Down
2 changes: 1 addition & 1 deletion R/middleware.R
Expand Up @@ -191,7 +191,7 @@ staticHandler <- function(root) {
if (!identical(req$REQUEST_METHOD, 'GET'))
return(NULL)

path <- req$PATH_INFO
path <- URLdecode(req$PATH_INFO)

if (is.null(path))
return(httpResponse(400, content="<h1>Bad Request</h1>"))
Expand Down

0 comments on commit 220c7e9

Please sign in to comment.