Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #240 from Humblehound/master
Browse files Browse the repository at this point in the history
Bump akka and akka-http version to latest version
  • Loading branch information
DanielaSfregola authored May 12, 2019
2 parents 2ee9e39 + e1897b3 commit 6b52904
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ resolvers ++= Seq(
libraryDependencies ++= {

val Typesafe = "1.3.2"
val Akka = "2.5.8"
val AkkaHttp = "10.0.10"
val Akka = "2.5.22"
val AkkaHttp = "10.1.8"
val AkkaHttpJson4s = "1.18.1"
val Json4s = "3.5.3"
val Specs2 = "4.0.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private[twitter4s] trait OAuthClient extends CommonClient with RequestBuilding {

def apply(uri: String, content: Product): HttpRequest = {
val data = toBodyAsEncodedParams(content)
val contentType = ContentType(MediaTypes.`application/x-www-form-urlencoded`, HttpCharsets.`UTF-8`)
val contentType = ContentType(MediaTypes.`application/x-www-form-urlencoded`)
apply(uri, data, contentType)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import org.specs2.mutable.SpecificationLike

trait Spec extends SpecificationLike with UriHelpers {

val `application/x-www-form-urlencoded` = MediaTypes.`application/x-www-form-urlencoded` withCharset HttpCharsets.`UTF-8`
val `application/x-www-form-urlencoded` = MediaTypes.`application/x-www-form-urlencoded`
val `text/plain` = MediaTypes.`text/plain` withCharset HttpCharsets.`UTF-8`

trait SpecContext extends FixturesSupport with AwaitableFuture with Scope {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.danielasfregola.twitter4s.http
package oauth

import akka.http.scaladsl.model._
import akka.http.scaladsl.model.headers.RawHeader
import akka.http.scaladsl.model.{HttpCharsets, _}
import com.danielasfregola.twitter4s.entities.{AccessToken, ConsumerToken}
import com.danielasfregola.twitter4s.helpers.{AwaitableFuture, TestActorSystem, TestExecutionContext}
import org.specs2.matcher.Scope
Expand All @@ -14,7 +14,7 @@ class OAuth1ProviderSpec extends TestActorSystem with SpecificationLike with Awa

val request = {
val uri = Uri("https://api.twitter.com/1/statuses/update.json?include_entities=true")
val contentType = ContentType(MediaTypes.`application/x-www-form-urlencoded`, HttpCharsets.`UTF-8`)
val contentType = ContentType(MediaTypes.`application/x-www-form-urlencoded`)
val entity = HttpEntity("status=Hello+Ladies+%2B+Gentlemen%2C+a+signed+OAuth+request%21")
HttpRequest(method = HttpMethods.POST, uri = uri, entity = entity.withContentType(contentType))
}
Expand Down

0 comments on commit 6b52904

Please sign in to comment.