@rip-lang/server 1.4.12 → 1.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.rip +7 -2
package/package.json
CHANGED
package/server.rip
CHANGED
|
@@ -657,9 +657,14 @@ class Server
|
|
|
657
657
|
finally
|
|
658
658
|
@releaseRuntime(runtime)
|
|
659
659
|
if matchedRoute?.static
|
|
660
|
-
|
|
660
|
+
start = performance.now()
|
|
661
|
+
res = serveStaticRoute(req, url, matchedRoute)
|
|
662
|
+
@logAccess(req, res, (performance.now() - start) / 1000, 0)
|
|
663
|
+
return res
|
|
661
664
|
if matchedRoute?.redirect
|
|
662
|
-
|
|
665
|
+
res = buildRedirectResponse(req, url, matchedRoute)
|
|
666
|
+
@logAccess(req, res, 0, 0)
|
|
667
|
+
return res
|
|
663
668
|
|
|
664
669
|
# Resolve host to app — app traffic falls back to the managed worker registry
|
|
665
670
|
appId = matchedRoute?.app or resolveHost(@appRegistry, host)
|