couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [couchdb-fauxton] branch master updated: also proxy multipart/form-data to dev server
Date Thu, 04 May 2017 12:01:32 GMT
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 <garren.smith@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" <commits@couchdb.apache.org>'].

Mime
View raw message