Skip to content

Commit ab1174d

Browse files
committed
remove options and patch from allow
1 parent bbe6f03 commit ab1174d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "solid-rest",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"author": "Jeff Zucker",
55
"license": "MIT",
66
"description": "treat any storage as a mini Solid server",

src/rest.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ async fetch(uri, options) {
196196
headers.date = headers.date ||
197197
new Date(Date.now()).toISOString()
198198
headers.allow = headers.allow ||
199-
[ 'OPTIONS, HEAD, GET, PATCH, POST, PUT, DELETE' ]
199+
[ 'HEAD, GET, POST, PUT, DELETE' ]
200+
// [ 'OPTIONS, HEAD, GET, PATCH, POST, PUT, DELETE' ]
200201
headers['x-powered-by'] = headers['x-powered-by'] ||
201202
self.storage(options).name
202203
/*

0 commit comments

Comments
 (0)