зеркало из https://github.com/mozilla/pjs.git
Not in the build. Allow POST requests to handle special cases too.
This commit is contained in:
Родитель
48de886023
Коммит
0213999afa
|
@ -105,7 +105,9 @@ class ScriptFile {
|
|||
if (s.startsWith("START")) {
|
||||
// Check to see if this was in the requested URL
|
||||
String filename = new String ("GET " + s.substring(6));
|
||||
if (request.startsWith(filename))
|
||||
String otherfilename = new String("POST " + s.substring(6));
|
||||
if (request.startsWith(filename) ||
|
||||
request.startsWith(otherfilename))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -105,7 +105,9 @@ class ScriptFile {
|
|||
if (s.startsWith("START")) {
|
||||
// Check to see if this was in the requested URL
|
||||
String filename = new String ("GET " + s.substring(6));
|
||||
if (request.startsWith(filename))
|
||||
String otherfilename = new String("POST " + s.substring(6));
|
||||
if (request.startsWith(filename) ||
|
||||
request.startsWith(otherfilename))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче