Comments (5)
This issue isn't as simple as writing an else statement and returning a different response since responses must have a body of the following type: String?
I'm trying to figure out a solution for this but most likely won't come up with the most graceful one. I'll submit a PR if I think my solution is viable.
from swifton.
@califrench thanks. I believe there is solution for mime types management in Swift, we should not be very first facing this issue :) Please let me know if you will find something.
from swifton.
@sauliusgrigaitis I realized that this was highlighting two different issues as I typed my explanation up.
One issue is the fact we are sending all assets with text/plain
but the bigger issue is we can only return text resources and not binary files with a Response
from swifton.
This is no longer an issue.
EDIT: I forgot this was referring to files such as images. It is still an issue.
from swifton.
This is a duplicate of #28
from swifton.
Related Issues (20)
- Where are the tests? HOT 2
- Demo App ideas HOT 4
- error: no such module 'Spectre' HOT 3
- Unused variable in ControllerSpec HOT 1
- Write tests for Application Controller filters
- Middleware: Parameters
- Middleware: Cookies
- Reliance on Foundation in MimeType.swift HOT 1
- Router not returning assets that aren't text HOT 1
- Build with error:error: NoSources("xxxxxxx/Packages/PathKit-0.6.1/Tests/Fixtures") HOT 3
- Rewrite tests to XCTest
- Swift 3 support HOT 2
- S4 support
- Using plain methods in controller instead of actions() with closures HOT 9
- Router needs to return the correct mime-type for public files instead of `text/plain`
- Problems using Swift Project Manager. HOT 3
- 2000. star. Where is my candy? HOT 1
- Is project abandoned ? HOT 1
- "static nature of swift" remark HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swifton.