Skip to content

Commit 90e5a49

Browse files
update DispatchRequest, add QUERY_DOCUMENT header
1 parent 35c9e00 commit 90e5a49

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/dispatchRequest.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ function DispatchRequest(url, action, payload, local_auth, remote_auth = null, c
128128
if (err.response && err.response.data) e.data = err.response.data
129129
throw e
130130
})
131+
case CONST.QUERY_DOCUMENT:
132+
options.headers = options.headers ? options.headers : {}
133+
options.headers['X-HTTP-Method-Override'] = 'GET'
131134
default:
132135
options.headers = options.headers ? options.headers : {}
133136
options.headers['Content-Type'] = 'application/json'

0 commit comments

Comments
 (0)