mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 13:32:24 +00:00
[HUDSON-5391] Fixed the infamous Turkish bug.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@26650 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
af12705d7a
commit
1b3c1f92fd
15 files changed
+31
-17
No files matched your search
@@ -30,6 +30,7 @@ import com.gargoylesoftware.htmlunit.WebWindow;
|
||||
import com.gargoylesoftware.htmlunit.PageCreator;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* {@link PageCreator} that understands JNLP file.
|
||||
@@ -39,7 +40,7 @@ import java.io.IOException;
|
||||
public class HudsonPageCreator extends DefaultPageCreator {
|
||||
@Override
|
||||
public Page createPage(WebResponse webResponse, WebWindow webWindow) throws IOException {
|
||||
String contentType = webResponse.getContentType().toLowerCase();
|
||||
String contentType = webResponse.getContentType().toLowerCase(Locale.ENGLISH);
|
||||
if(contentType.equals("application/x-java-jnlp-file"))
|
||||
return createXmlPage(webResponse, webWindow);
|
||||
return super.createPage(webResponse, webWindow);
|
||||
|
||||
@@ -30,6 +30,7 @@ import static java.lang.annotation.ElementType.METHOD;
|
||||
import java.lang.annotation.Retention;
|
||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* Runs a test case with one of the preset HUDSON_HOME data set.
|
||||
@@ -62,7 +63,7 @@ public @interface PresetData {
|
||||
|
||||
public class RunnerImpl extends Recipe.Runner<PresetData> {
|
||||
public void setup(HudsonTestCase testCase, PresetData recipe) {
|
||||
testCase.withPresetData(recipe.value().name().toLowerCase().replace('_','-'));
|
||||
testCase.withPresetData(recipe.value().name().toLowerCase(Locale.ENGLISH).replace('_','-'));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user