Skip to content
#

http-server

Here are 2,785 public repositories matching this topic...

caddy
gucki
gucki commented Dec 12, 2020

It seems Caddy does not support wildcards/ expression matching in the reverse proxy's header_up.

For example this does not remove any headers:

header_up -X-SHIBBOLETH-*

This works as expected, but is limited in its use:

header_up -X-SHIBBOLETH-LOGIN

It'd be great if Caddy would support wildcards/ expression matching in the reverse proxy's header_up/ header_down.

asvetlov
asvetlov commented Nov 3, 2021

Describe the bug

Grepping over the source code shows that chardet/cchardet is still present in codebase, but chardet was replaced with charset-normalizer by #5930

A hero for dropping all remaining parts is wanted!

:)

To Reproduce

grep over aiohttp cloned repo; or use github web search: https://github.com/aio-libs/aiohttp/search?q=chardet&type=code

Expected behavior

No c

Some-Dood
Some-Dood commented Aug 6, 2021

Hello there! After some experimentation with the mocking API, I discovered that mocked contexts do not provide a mocked Cookies instance. Suppose we wanted to test the following middleware:

// session.ts
// Explicit type annotations omitted for brevity...
export function checkSession(ctx) {
    const maybeSessionId = ctx.cookies.get('sid');
    ctx.assert(maybeSessionId, St
ikhoon
ikhoon commented Nov 5, 2021

The logs produced by LoggingService and LoggingClient are human-readable.
However, this non-structured text is not good when users want to store the log file to Elastic Search or other key-value storage.
We can give an extension API to users to customize the output format. For example:

interface LogFormat {
    static LogFormat ofText() {
        // return a log message formatted
tinyhttp
groenroos
groenroos commented Oct 28, 2021

Describe the bug

When an optional route param (i.e. /foo/:bar?) is not supplied for a particular request, the req.params object will still contain it, with a string value of "undefined".

This would mean that i.e. if (req.params.bar) would unexpectedly always be truthy, even when the param was not supplied.

To Reproduce

Simple app with optional route param bar:

Improve this page

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

Learn more