Skip to content
#

router

Here are 2,577 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

Manidos
Manidos commented Aug 1, 2019

Hey!

Render function can be used as a standalone library var render = require("mithril/render")
Since it requires a vnode as the second argument, my question is how to create a vnode? Is there a standalone tool than can be imported from mithril?

I tried feeding hyperscript vnode to render function, but it didn't work.

var h = require('hyperscript')
m.render(body.document,
allain
allain commented Apr 1, 2020

Describe the bug
When sanitizing the r.URL.Path by making is absolute it introduces a windows path of D:\... on the requested path, which fails.

Versions
go version 1.14
version of mux in our go.mod is listed as 1.7.4

Steps to Reproduce
Use the spa example on a windows box and fetch any file

Expected behavior
To have the file delivered

liaodq
liaodq commented Sep 3, 2019

doInterceptions方法里有对Warehouse.interceptors的判断

if (null != Warehouse.interceptors && Warehouse.interceptors.size() > 0){
      checkInterceptorsInitStatus();
      ......
}

Warehouse.interceptors是在InterceptorServiceImpl#init里新线程里完成添加的

         IInterceptor iInterceptor = interceptorClass.getConstructor().newInstance();
         iInterceptor.init(context);
bug
rogpeppe
rogpeppe commented Nov 16, 2015

The documentation does not make it clear whether
paths of the form:

/prefix:foo

are allowed. These are currently supported by httprouter,
but don't seem quite in the spirit of its simple specification
(you can't have statically defined suffixes for a path element,
so why should you be allowed a statically defined prefix?)

This form:

/prefix*foo

is similarly not specified but i

bug
vector
gpism
gpism commented Nov 7, 2019

Hi This project is amazing and I want to contribute but I noticed there is no developer documentation also this project doesn't not seem to use platformIO or Arduino ...so no clue how to start ....is possible to provide documentation ...like which module does what and how compile /build .........even better if its possible to convert to platformio project

animamundi
animamundi commented Aug 29, 2017
import {Middleware, ExpressErrorMiddlewareInterface} from "routing-controllers";

@Middleware({ type: "after" })
export class CustomErrorHandler implements ExpressErrorMiddlewareInterface {

    error(error: any, request: any, response: any, next: (err: any) => any) {
        console.log("do something...");
        next();
    }

}

This example code from the docume

Improve this page

Add a description, image, and links to the router 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 router topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.