stephenfewer/grinder

The path of HTML's elements?

Closed this issue · 1 comments

In the fuzzer HTML, there is a code like "<embed src="aa.swf", ...", the file aa.swf is just in the current directory. But when the grinder run, it cannot find aa.swf. I also put it in the ./data directory. It still cannot find it.

The file https://github.com/stephenfewer/grinder/blob/master/node/core/server.rb#L176 handles serving out some hard coded files from the ./data directory. If the file is not found a 307 redirect is issued.

With a little modification you should be able to serve out the file you wish (either hard code the file name or use a regex match against request.path.