Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Jl #623

Merged
merged 3 commits into from

4 participants

@lzhan

This pull request includes changes made from pr #565 and a jslint error fix.

@mojit0

+1

@caridy
Owner

FYI: in theory, after 0.5.0 released, we can create a RS addon that provides robots.txt and crossdomain.xml synthetic files.

@lzhan

Will merge. Manually run the failed functional tests with nodejs08, the test passed.

@lzhan lzhan merged commit f9eb94a into yahoo:develop

1 check failed

Details default The Travis build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 25, 2012
  1. @jlecomte
Commits on Sep 26, 2012
  1. @jlecomte
Commits on Oct 12, 2012
  1. fix jslint error for pr565

    Lichun Zhan authored
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/app/middleware/mojito-handler-static.js
View
10 lib/app/middleware/mojito-handler-static.js
@@ -19,7 +19,7 @@
*/
-/*jslint anon:true, sloppy:true, nomen:true*/
+/*jslint node:true, anon:true, sloppy:true, nomen:true */
/*
@@ -198,9 +198,13 @@ function staticProvider(store, globalLogger) {
// Use the resource store as a URI "rewriter" here.
// /favicon.ico is sent to ./my_app_folder/assets/favicon.ico
+ // /robots.txt is sent to ./my_app_folder/assets/robots.txt
+ // /crossdomain.xml is sent to ./my_app_folder/assets/crossdomain.xml
filename = urls[path];
- // TODO: [Issue 80] remove this for performance
- if ((!filename) && (path === '/favicon.ico')) {
+ if (!filename &&
+ (path === '/favicon.ico' ||
+ path === '/robots.txt' ||
+ path === '/crossdomain.xml')) {
filename = pa.join(store._config.root, 'assets', path);
}
Something went wrong with that request. Please try again.