You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2017/05/04 12:01:32 UTC
[couchdb-fauxton] branch master updated: also proxy
multipart/form-data to dev server
This is an automated email from the ASF dual-hosted git repository.
garren pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-fauxton.git
The following commit(s) were added to refs/heads/master by this push:
new 30f8780 also proxy multipart/form-data to dev server
30f8780 is described below
commit 30f8780dff394fa056b7c6d33bc241cc4cc6e7d3
Author: Garren Smith <ga...@gmail.com>
AuthorDate: Thu May 4 14:00:00 2017 +0200
also proxy multipart/form-data to dev server
---
devserver.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/devserver.js b/devserver.js
index 692650d..332a699 100644
--- a/devserver.js
+++ b/devserver.js
@@ -96,7 +96,7 @@ const runWebpackServer = function () {
app.all('*', (req, res, next) => {
const accept = req.headers.accept ? req.headers.accept.split(',') : '';
- if (/application\/json/.test(accept[0])) {
+ if (/application\/json/.test(accept[0]) || /multipart\/form-data/.test(accept[0])) {
proxy.web(req, res);
return;
}
--
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].