Skip to content

Commit

Permalink
Update to latest Vapor and fix issue with Google's Content Type
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim committed Jul 5, 2018
1 parent d1e21b2 commit a567ebc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/Packages
/*.xcodeproj
build
DerivedData/
32 changes: 16 additions & 16 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -15,44 +15,44 @@
"repositoryURL": "https://github.com/vapor/core.git",
"state": {
"branch": null,
"revision": "a909eccc41941faac6fb9e511cdb9a5cb30a05de",
"version": "3.1.7"
"revision": "7f56a09995bf3c8df562be456bdcda405d9d0678",
"version": "3.4.1"
}
},
{
"package": "Crypto",
"repositoryURL": "https://github.com/vapor/crypto.git",
"state": {
"branch": null,
"revision": "1b8c2ba5a42f1adf2aa812204678d8b16466fa59",
"version": "3.1.2"
"revision": "4b85405430df1892ee3aa1554bdb477e96cf46ad",
"version": "3.2.0"
}
},
{
"package": "DatabaseKit",
"repositoryURL": "https://github.com/vapor/database-kit.git",
"state": {
"branch": null,
"revision": "0db303439e5ef8b6df50a2b6c4029edddee90cb0",
"version": "1.0.1"
"revision": "acdd4d3384ec0122dcfcca8d23d9054a2860ffba",
"version": "1.2.0"
}
},
{
"package": "HTTP",
"repositoryURL": "https://github.com/vapor/http.git",
"state": {
"branch": null,
"revision": "5e766f72d81ef5fe8805d704efdffd17e4906134",
"version": "3.0.6"
"revision": "8123ea00e9858b369cd168d0303d33e7d3804d19",
"version": "3.0.7"
}
},
{
"package": "JWT",
"repositoryURL": "https://github.com/vapor/jwt.git",
"state": {
"branch": null,
"revision": "6acca0abfe335ce7585d678cd721e8a0e3c7a053",
"version": "3.0.0-rc.2.1.1"
"revision": "de0dc5bbba60250c24c5c4b4d2505d7a71dd03ae",
"version": "3.0.0-rc.2.1.2"
}
},
{
Expand Down Expand Up @@ -87,17 +87,17 @@
"repositoryURL": "https://github.com/apple/swift-nio.git",
"state": {
"branch": null,
"revision": "a5db2a67515ad2b490ac5646db204a5edf939f47",
"version": "1.6.1"
"revision": "695afc5205aaa49fca092b94b479ff71c43d9d3c",
"version": "1.8.0"
}
},
{
"package": "swift-nio-ssl",
"repositoryURL": "https://github.com/apple/swift-nio-ssl.git",
"state": {
"branch": null,
"revision": "38955a5f806a952daf2b16fbfe9aa529749cf1dd",
"version": "1.1.0"
"revision": "0adc938bc8de3d3829b842f9767d81c7480b8403",
"version": "1.1.1"
}
},
{
Expand Down Expand Up @@ -150,8 +150,8 @@
"repositoryURL": "https://github.com/vapor/vapor.git",
"state": {
"branch": null,
"revision": "39b4d3fa36e58c6f7415c9da6c65a703bec34cea",
"version": "3.0.3"
"revision": "74a46ecacca51d326a1e8cf4b7967827765f05bf",
"version": "3.0.5"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Sources/Imperial/Services/Google/GoogleCallbackBody.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ struct GoogleCallbackBody: Content {
let redirectURI: String
let grantType: String = "authorization_code"

static var defaultMediaType: MediaType = .urlEncodedForm
static var defaultContentType: MediaType = .urlEncodedForm

enum CodingKeys: String, CodingKey {
case code = "code"
Expand Down

0 comments on commit a567ebc

Please sign in to comment.