-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
Pass MimeTypes.class as the classloader source. No unit test to confirm the fix.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -204,7 +204,7 @@ public Type getBaseType() | |
try | ||
{ | ||
String resourceName = "org/eclipse/jetty/http/mime.properties"; | ||
URL mimeTypesUrl = Loader.getResource(__dftMimeMap.getClass(), resourceName); | ||
URL mimeTypesUrl = Loader.getResource(MimeTypes.class, resourceName); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
gregw
Author
Contributor
|
||
if (mimeTypesUrl == null) | ||
{ | ||
LOG.warn("Missing mime-type resource: {}", resourceName); | ||
|
@@ -241,7 +241,7 @@ public Type getBaseType() | |
try | ||
{ | ||
String resourceName = "org/eclipse/jetty/http/encoding.properties"; | ||
URL mimeTypesUrl = Loader.getResource(__dftMimeMap.getClass(), resourceName); | ||
URL mimeTypesUrl = Loader.getResource(MimeTypes.class, resourceName); | ||
if (mimeTypesUrl == null) | ||
{ | ||
LOG.warn("Missing mime-type resource: {}", resourceName); | ||
|
Be careful with your commit messages.
That's not one of the formats that recognized by git or github.