Skip to content

Commit

Permalink
Merge pull request #139 from ipfs/update/cors
Browse files Browse the repository at this point in the history
gx publish 2.0.10 - Update cors library
  • Loading branch information
hsanjuan authored Jan 11, 2019
2 parents 55588cf + 50a7669 commit 49874fb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gx/lastpubver
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.9: QmaAP56JAwdjwisPTu4yx17whcjTr6y5JCSCF77Y1rahWV
2.0.10: QmWGm4AbZEbnmdgVTza52MSNpEmBdFVqzmAysRbjrRyGbH
6 changes: 3 additions & 3 deletions http/reforigin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func TestWildcardOrigin(t *testing.T) {
Origin: origin,
AllowOrigins: allowedOrigins,
ResHeaders: map[string]string{
ACAOrigin: origin,
ACAOrigin: "*",
ACAMethods: "",
ACACredentials: "",
"Access-Control-Max-Age": "",
Expand Down Expand Up @@ -259,7 +259,7 @@ func TestWildcardReferer(t *testing.T) {
Origin: origin,
AllowOrigins: allowedOrigins,
ResHeaders: map[string]string{
ACAOrigin: origin,
ACAOrigin: "*",
ACAMethods: "",
ACACredentials: "",
"Access-Control-Max-Age": "",
Expand Down Expand Up @@ -289,7 +289,7 @@ func TestAllowedMethod(t *testing.T) {
gtc := func(method string, ok bool) httpTestCase {
code := http.StatusOK
hdrs := map[string]string{
ACAOrigin: "http://localhost",
ACAOrigin: "*",
ACAMethods: method,
ACACredentials: "",
"Access-Control-Max-Age": "",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
{
"author": "rs",
"hash": "QmPG2kW5t27LuHgHnvhUwbHCNHAt2eUcb4gPHqofrESUdB",
"hash": "QmNNk4iczWp8Q4R1mXQ2mrrjQvWisYqMqbW1an8qGbJZsM",
"name": "cors",
"version": "0.0.0"
"version": "1.6.0"
},
{
"author": "whyrusleeping",
Expand Down Expand Up @@ -53,6 +53,6 @@
"license": "MIT",
"name": "go-ipfs-cmds",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "2.0.9"
"version": "2.0.10"
}

0 comments on commit 49874fb

Please sign in to comment.