• S
    Make sure the image optimization endpoint only response with images (#23366) · 98211405
    Shu Ding 提交于
    If the upstream MIME type isn't prefixed with `image/`, the endpoint should directly response with a 400 error.
    
    ## Bug
    
    - [x] Fixes #23312
    - [x] Integration tests added
    
    ## Feature
    
    - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
    - [ ] Related issues linked using `fixes #number`
    - [ ] Integration tests added
    - [ ] Documentation added
    - [ ] Telemetry added. In case of a feature if it's used or not.
    
    ## Documentation / Examples
    
    - [ ] Make sure the linting passes
    98211405
image-optimizer.ts 11.0 KB