[ARVADOS] updated: e3ac17f8a8aa439e21a8bf56a571f91a671313f7
Git user
git at public.curoverse.com
Tue Apr 18 13:12:02 EDT 2017
Summary of changes:
services/keep-web/handler.go | 14 ++++++++++++++
services/keep-web/handler_test.go | 31 +++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+)
via e3ac17f8a8aa439e21a8bf56a571f91a671313f7 (commit)
via 244c47436f294638271eef637997fd00f7ca49f5 (commit)
via cf311e8e16ba74467c77b5353afedc29b40a6a41 (commit)
from 692a66affa483483d67931a6b095b361bfd06d24 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit e3ac17f8a8aa439e21a8bf56a571f91a671313f7
Merge: 692a66a 244c474
Author: Tom Clegg <tom at curoverse.com>
Date: Tue Apr 18 13:01:01 2017 -0400
Merge branch '11509-keep-web-cors-range'
closes #11509
commit 244c47436f294638271eef637997fd00f7ca49f5
Author: Tom Clegg <tom at curoverse.com>
Date: Tue Apr 18 13:00:27 2017 -0400
11509: Add comments.
diff --git a/services/keep-web/handler_test.go b/services/keep-web/handler_test.go
index e2eb33e..86e1409 100644
--- a/services/keep-web/handler_test.go
+++ b/services/keep-web/handler_test.go
@@ -32,6 +32,7 @@ func (s *UnitSuite) TestCORSPreflight(c *check.C) {
},
}
+ // Check preflight for an allowed request
resp := httptest.NewRecorder()
h.ServeHTTP(resp, req)
c.Check(resp.Code, check.Equals, http.StatusOK)
@@ -40,6 +41,7 @@ func (s *UnitSuite) TestCORSPreflight(c *check.C) {
c.Check(resp.Header().Get("Access-Control-Allow-Methods"), check.Equals, "GET, POST")
c.Check(resp.Header().Get("Access-Control-Allow-Headers"), check.Equals, "Range")
+ // Check preflight for a disallowed request
resp = httptest.NewRecorder()
req.Header.Set("Access-Control-Request-Method", "DELETE")
h.ServeHTTP(resp, req)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list