Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moving proxy call to the bottom such that 404 responses from proxy ca…

…lls are fully proxied (and not overwritten)
  • Loading branch information...
commit 40069a1bdea8a248eef274c402fd31b307215eca 1 parent ef77f13
Onar Vikingstad authored Charles Jolley committed
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/sproutcore/rack/service.rb
View
9 lib/sproutcore/rack/service.rb
@@ -122,10 +122,7 @@ def middleware_for(project)
#if config.serve_test_runner || config.serve_docs
apps << SC::Rack::Dev.new(project)
#end
- if project.buildfile.proxies.size > 0
- apps << SC::Rack::Proxy.new(project)
- end
-
+
# Add builder for the project itself
apps << SC::Rack::Builder.new(project)
@@ -140,6 +137,10 @@ def middleware_for(project)
apps << SC::Rack::Filesystem.new(project)
end
+ if project.buildfile.proxies.size > 0
+ apps << SC::Rack::Proxy.new(project)
+ end
+
# Wrap'em in a cascade if needed. This will return the first
# app that does not return nil
app = apps.size == 1 ? apps.first : ::Rack::Cascade.new(apps)
Please sign in to comment.
Something went wrong with that request. Please try again.