Skip to content

Commit

Permalink
Adding syntax highlighting for http header code blocks in GitHub and …
Browse files Browse the repository at this point in the history
…NuGet (changing from "plaintext" to "http", and removing whitespace indentation to make it valid syntax for proper highlighting) (#163)
  • Loading branch information
NickNiebling authored Dec 30, 2024
1 parent 7a7e3d3 commit cc7b291
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions README-NuGet.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ This will add a number of default HTTP headers to all responses from your server

The following is an example of the response headers from version 9.0.0 (taken on November 19th, 2024)

```plaintext
cache-control: max-age=31536000,private
content-security-policy: script-src 'self';object-src 'self';block-all-mixed-content;upgrade-insecure-requests;
cross-origin-resource-policy: same-origin
referrer-policy: no-referrer
strict-transport-security: max-age=31536000;includeSubDomains
x-content-type-options: nosniff
x-frame-options: DENY
x-permitted-cross-domain-policies: none;
x-xss-protection: 0
```http
cache-control: max-age=31536000,private
content-security-policy: script-src 'self';object-src 'self';block-all-mixed-content;upgrade-insecure-requests;
cross-origin-resource-policy: same-origin
referrer-policy: no-referrer
strict-transport-security: max-age=31536000;includeSubDomains
x-content-type-options: nosniff
x-frame-options: DENY
x-permitted-cross-domain-policies: none;
x-xss-protection: 0
```

Please note: The above example contains only the headers added by the Middleware.
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ This will add a number of default HTTP headers to all responses from your server

The following is an example of the response headers from version 9.0.0 (taken on November 19th, 2024)

```plaintext
cache-control: max-age=31536000,private
content-security-policy: script-src 'self';object-src 'self';block-all-mixed-content;upgrade-insecure-requests;
cross-origin-resource-policy: same-origin
referrer-policy: no-referrer
strict-transport-security: max-age=31536000;includeSubDomains
x-content-type-options: nosniff
x-frame-options: DENY
x-permitted-cross-domain-policies: none;
x-xss-protection: 0
```http
cache-control: max-age=31536000,private
content-security-policy: script-src 'self';object-src 'self';block-all-mixed-content;upgrade-insecure-requests;
cross-origin-resource-policy: same-origin
referrer-policy: no-referrer
strict-transport-security: max-age=31536000;includeSubDomains
x-content-type-options: nosniff
x-frame-options: DENY
x-permitted-cross-domain-policies: none;
x-xss-protection: 0
```

Please note: The above example contains only the headers added by the Middleware.
Expand Down

0 comments on commit cc7b291

Please sign in to comment.