agoo 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a566ab0bb371b026b0a6699679f4dec21b8ce7b17247216cfe0685d59ba7813b
4
- data.tar.gz: d924ede365b1ea496e7f9bf170f339442c7b50a5027cffb62870d9e6697ae687
3
+ metadata.gz: 87f91bf3855678dbd8f99aed64322c1dfffe5ba513770ec31ac43aefbf3d8773
4
+ data.tar.gz: 9d7aebbd6902ad5806157cca7003768a7addc650aa416680482b4e1337f36389
5
5
  SHA512:
6
- metadata.gz: 6686a6f59c8efa9f4cc0183357bd04fa6ecf7050472e1857cb1fb3a5448b512296f936fa362a0121aa7f0620c2f6f8ad285442f2141d47df67467fe990b6595d
7
- data.tar.gz: dc451db62e59763103a9fabc8b6670da80d9177c089088da6317641f95782811aff7efe92a05dd2cc6e5caa86df210616cd4b2775b5e411bd18ccd2a82dc8a6d
6
+ metadata.gz: '08abf0bcb6125fecc0efc5c93e62cb9d72c85146f57b63060a44667bfe7476fd3b0374ee8e40f0faafaa4fff20b65b53499e830fa5e352cb8fd85fd2c56cb5dd'
7
+ data.tar.gz: b20a23b0cd620b06a14d7d934f69e9d471a8c16d8ad3e7b3ebda073c8889cae7a825d42e831335a5ba1bfc2e868b255134b1d0fe6d1b582d9b14c89ab0778a15
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### 2.0.3 - 2018-05-05
4
+
5
+ - Allow X-XSS-Protection and only check headers in pendantic mode.
6
+
3
7
  ### 2.0.2 - 2018-05-04
4
8
 
5
9
  - Fixed compiler issues for different OSs and compilers.
@@ -418,6 +418,7 @@ static const char *header_keys[] = {
418
418
  "X-TipoRicevuta",
419
419
  "X-Trasporto",
420
420
  "X-VerificaSicurezza",
421
+ "X-XSS-Protection",
421
422
  "X400-Content-Identifier",
422
423
  "X400-Content-Return",
423
424
  "X400-Content-Type",
@@ -367,7 +367,9 @@ header_cb(VALUE key, VALUE value, Text *tp) {
367
367
  const char *vs = StringValuePtr(value);
368
368
  int vlen = (int)RSTRING_LEN(value);
369
369
 
370
- http_header_ok(ks, klen, vs, vlen);
370
+ if (the_server.pedantic) {
371
+ http_header_ok(ks, klen, vs, vlen);
372
+ }
371
373
  if (0 != strcasecmp("Content-Length", ks)) {
372
374
  *tp = text_append(*tp, ks, klen);
373
375
  *tp = text_append(*tp, ": ", 2);
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Agoo
3
3
  # Agoo version.
4
- VERSION = '2.0.2'
4
+ VERSION = '2.0.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Ohler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-04 00:00:00.000000000 Z
11
+ date: 2018-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj