You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: WebP image MIME type check uses 'webp' instead of 'image/webp' in handleResponse #1898
In the handleResponse function, the MIME type case for WebP images is incorrectly written as 'webp' instead of 'image/webp'. This means WebP images served with the correct MIME type (image/webp) will never match the case, fall through to the default .png extension, and be saved with the wrong extension.
Affected Code (lines ~145-149)
switch(mimeType){case'image/jpg':
case'image/jpeg':
extension='.jpeg';break;case'webp': // ❌ Should be 'image/webp'extension='.webp';break;}
Expected Behavior
WebP images should be saved with the .webp extension.
Actual Behavior
WebP images are saved with the default .png extension because 'webp' never matches the mimeType string 'image/webp'.
Activity
fix: correct WebP MIME type from 'webp' to 'image/webp' in handleResp…
kuishou68 commentedon Apr 18, 2026
I've opened PR #1899 to fix this issue.
Signed-off-by: cocoon 54054995+kuishou68@users.noreply.github.com
fix: correct WebP MIME type from 'webp' to 'image/webp' in handleResp…
fix(cli): correct WebP MIME type check in handleResponse ('webp' → 'i…
test: save WebP responses with the right extension (#1901)
chore(main): release chrome-devtools-mcp 0.22.0 (#1884)
chore(main): release chrome-devtools-mcp 0.22.0 (#1884)