Skip to content

Commit

Permalink
headers change
Browse files Browse the repository at this point in the history
  • Loading branch information
workingDog committed Dec 24, 2017
1 parent b5280df commit 3c10204
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Change Log

### changes in 0.3-SNAPSHOT

* removed the "Authorization" -> ("Basic " + hash) from all headers
(since already using .withAuth(user, password, WSAuthScheme.BASIC) in TaxiiConnection)


### changes in 0.2
Expand Down
9 changes: 3 additions & 6 deletions src/main/scala/com/kodekutters/taxii/TaxiiConnection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,16 @@ case class TaxiiConnection(host: String,

val getHeaders = Map(
"Accept" -> "application/vnd.oasis.taxii+json",
"version" -> taxiiVersion,
"Authorization" -> ("Basic " + hash)).toSeq
"version" -> taxiiVersion).toSeq

val postHeaders = Map(
"Accept" -> "application/vnd.oasis.taxii+json",
"Content-Type" -> "application/vnd.oasis.stix+json",
"version" -> taxiiVersion,
"Authorization" -> ("Basic " + hash)).toSeq
"version" -> taxiiVersion).toSeq

val stixHeaders = Map(
"Accept" -> "application/vnd.oasis.stix+json",
"version" -> taxiiVersion,
"Authorization" -> ("Basic " + hash)).toSeq
"version" -> taxiiVersion).toSeq

// create the standalone Web Service client
val wsClient = StandaloneAhcWSClient()
Expand Down

0 comments on commit 3c10204

Please sign in to comment.