(metaPath, reqPath string, applyToSubFolder bool)
| 78 | } |
| 79 | |
| 80 | func MetaCoversPath(metaPath, reqPath string, applyToSubFolder bool) bool { |
| 81 | if utils.PathEqual(metaPath, reqPath) { |
| 82 | return true |
| 83 | } |
| 84 | return utils.IsSubPath(metaPath, reqPath) && applyToSubFolder |
| 85 | } |
| 86 | |
| 87 | // ShouldProxy TODO need optimize |
| 88 | // when should be proxy? |