Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds TIFF and WebP HTTP Media Types #3194

Merged
merged 2 commits into from
Jun 4, 2024
Merged

Adds TIFF and WebP HTTP Media Types #3194

merged 2 commits into from
Jun 4, 2024

Conversation

qalandarov
Copy link
Contributor

@qalandarov qalandarov commented May 16, 2024

These changes are now available in 4.101.2

Add additional image types:

app.post("upload") { req in
    guard [.jpeg, .png, .tiff, .webp].contains(req.content.contentType) else {
        throw Abort(.unsupportedMediaType)
    }
    // ...
}

Copy link
Member

@0xTim 0xTim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@0xTim 0xTim added the semver-patch Internal changes only label Jun 4, 2024
Copy link

codecov bot commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.51%. Comparing base (11cdb29) to head (111be08).
Report is 27 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3194      +/-   ##
==========================================
+ Coverage   76.86%   77.51%   +0.64%     
==========================================
  Files         211      210       -1     
  Lines        8119     8089      -30     
==========================================
+ Hits         6241     6270      +29     
+ Misses       1878     1819      -59     
Files Coverage Δ
Sources/Vapor/HTTP/Headers/HTTPMediaType.swift 76.19% <ø> (-2.54%) ⬇️

... and 95 files with indirect coverage changes

@0xTim 0xTim enabled auto-merge (squash) June 4, 2024 21:49
@0xTim 0xTim merged commit a46552b into vapor:main Jun 4, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-patch Internal changes only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants