Skip to content
#

middleware

Here are 3,077 public repositories matching this topic...

KernelDeimos
KernelDeimos commented Nov 16, 2019

Description

Using the fetch API from WHATWG in Google Chrome, an image upload does not have Content-Type multipart/form-data. Instead, the content type is set to the MIME type (ex: image/jpeg) with a boundary parameter. Setting Content-Type explicitly to multipart/form-data should result in an error (and it does).

How to reproduce

Follow an existing image upload example from

ghost
ghost commented Sep 18, 2019

Issue Description

I updated echo in one of my projects. After that my static configuration didn't work without changes. Before it automatically resolved to an existing index.html. After that I had to point to that file.

My code was something like that:

docsGroup := e.Group("")
docsGroup.Static("/", "docs")

In docs is an index.html which was delivered when no path was given

caritasverein
caritasverein commented Jan 3, 2020

The example code does not work as intended.

Steps to reproduce

Use the example code:

var express = require('express');
var proxy = require('http-proxy-middleware');

var app = express();

app.use(
  '/api',
  proxy({ target: 'http://www.example.org', changeOrigin: true })
);
app.listen(3000);

Expected behavior

This should create a proxy for /api to `http

thingsboard
IcyLemon
IcyLemon commented Nov 16, 2017

使用的elastic-job版本:2.1.1。

我的一个定时任务为通过 http 方式(使用 OKHttp 发送 http 请求)执行某个方法(例如:http://ip:port/myapp/synFundData)。

当调用上述接口时如果服务器返回504(后台执行时间太长导致超时),请问该定时任务是否会自动重试?因为我从 Nginx 的日志中发现:每隔30秒Nginx 会收到一个同样的http请求,且返回的状态码都是 504,日志如下:

...remote_user=- [16/Nov/2017:08:40:01 +0800] request="GET /xxx/synFundData HTTP/1.1" status=504
...remote_user=- [16/Nov/2017:08:40:31 +0800] request="GET /xxx/synFun

TheElectricCo
TheElectricCo commented Feb 18, 2020

Expected Behavior / New Feature

As stated in the ReadMe, Ocelot depends on .net standard 2.0 and should be usable with full .net framework

Actual Behavior / Motivation for New Feature

Nuget states that Ocelot 14.0.9 depends on .net core 3.1

image

dwhieb
dwhieb commented Aug 30, 2016

As noted in a comment on #97, developers who want to write a Store implementation either need to:

  1. extend their Store from express-session's store.js, which typically means requiring express-session as a dependency
  2. implement their own version of the functionality in store.js, session.js, and cookie.js (or copy the files from express-session)

This is because express-session requires the follo

transmittable-thread-local
ORESoftware
ORESoftware commented Feb 22, 2020

Given the docs (the readme.md file) it's unclear what order the middleware should be registered. Here is what I have:

  const webpack = require('webpack');
  const WebpackDashboardPlugin = require('webpack-dashboard/plugin');
  const config = require('./webpack.config.dev');
  /* eslint-enable import/no-extraneous-dependencies, global-require */

  const compiler = webpack(config);
goku-api-gateway

A Powerful HTTP API Gateway in pure golang!Goku API Gateway (中文名:悟空 API 网关)是一个基于 Golang开发的微服务网关,能够实现高性能 HTTP API 转发、服务编排、多租户管理、API 访问权限控制等目的,拥有强大的自定义插件系统可以自行扩展,并且提供友好的图形化配置界面,能够快速帮助企业进行 API 服务治理、提高 API 服务的稳定性和安全性。

  • Updated Mar 30, 2020
  • Go

Improve this page

Add a description, image, and links to the middleware topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the middleware topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.