mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-03 12:29:31 +00:00
JETTY-1532 HTTP headers decoded with platform's default encoding
This commit is contained in:
parent
ba8ecfbcfb
commit
bc4f45bbfe
@ -364,12 +364,12 @@ public class MimeTypes
|
||||
case 10:
|
||||
if (!quote && (';'==b || ' '==b )||
|
||||
(quote && '"'==b ))
|
||||
return CACHE.lookup(value.peek(start,i-start)).toString();
|
||||
return CACHE.lookup(value.peek(start,i-start)).toString(StringUtil.__UTF8);
|
||||
}
|
||||
}
|
||||
|
||||
if (state==10)
|
||||
return CACHE.lookup(value.peek(start,i-start)).toString();
|
||||
return CACHE.lookup(value.peek(start,i-start)).toString(StringUtil.__UTF8);
|
||||
|
||||
return (String)__encodings.get(value);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user